blob: 1132922ef3fc7ce6d2628464ba53bba1e3ba6042 (
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
34
|
# Maintainer: Zach Himsel <zach [at] himsel [dot] net>
pkgname=pmy-git
_pkgname=${pkgname%-git}
pkgver=r326.d6b7ccb
pkgrel=1
pkgdesc="General purpose context-aware zsh completion engine powered by fuzzy finder."
arch=('any')
depends=('fzf' 'zsh')
makedepends=('go')
provides=("${_pkgname}")
conflicts=("${_pkgname}-bin" "${_pkgname}")
url="https://github.com/relastle/pmy"
license=('MIT')
source=("${_pkgname}::git+https://github.com/relastle/pmy#branch=master")
sha256sums=(SKIP)
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
go mod tidy
go build
}
package() {
cd "${srcdir}/${_pkgname}"
install -Dm755 "pmy" "$pkgdir/usr/bin/pmy"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/pmy/LICENSE"
install -Dm644 "README.md" "$pkgdir/usr/share/docs/pmy/README.md"
}
|