blob: 24fcad9969b52ecac4be919baf63e487416ec31e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Julian Hurst <julian.hurst@pm.me>
pkgname=imp-git
pkgver=r35.0f2d29f
pkgrel=1
pkgdesc="Helps you manage your accounts using an ini format"
arch=('any')
url="https://git.sr.ht/~ark/imp"
license=('MIT')
conflicts=(imp)
optdepends=('gpgme: gpg file decryption support')
makedepends=(git meson scdoc)
source=("${pkgname%-git}::git+$url")
md5sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
mkdir -p build
arch-meson build ${pkgname%-git}
ninja -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
cd "${pkgname%-git}"
install -m755 scripts/imp-fill_dmenu.sh "$pkgdir"/usr/bin/imp-fill
}
|