diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -2,27 +2,32 @@ pkgname=yegonesh pkgver=20151102 -pkgrel=3 +pkgrel=4 pkgdesc="Yeganesh-like dmenu wrapper written in Go" arch=('x86_64' 'i686') -url="http://github.com/klowner/yegonesh" +url="https://github.com/klowner/yegonesh" license=('MIT') makedepends=('go') depends=('dmenu') options=('!strip' '!emptydirs') source=( - 'https://raw.githubusercontent.com/Klowner/yegonesh/master/main.go' + "https://raw.githubusercontent.com/Klowner/yegonesh/master/main.go" ) sha256sums=( '5262fbea59aa1fa2cfd06b8642d44ff23586314cced8cb2b30f5cf7804a5f3fb' ) +prepare() { + go mod init "${url#https://}" + go mod tidy +} + build() { - go build -o "yegonesh" + go build -o "$pkgname" } package() { - install -Dm755 "yegonesh" "$pkgdir/usr/bin/$pkgname" + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" } # vim:set ts=2 sw=2 et: |