diff options
author | aditya-K2 | 2021-12-17 02:19:24 +0530 |
---|---|---|
committer | aditya-K2 | 2021-12-17 02:21:18 +0530 |
commit | 64c6baa68923c4fef9915088972afe0267664c28 (patch) | |
tree | 37f1b133c25b07e7420454f51c8e46664d2ae22c | |
parent | 301ac8cabd2d9ec0c9a59d5c1b0436b35c8edffd (diff) | |
download | aur-64c6baa68923c4fef9915088972afe0267664c28.tar.gz |
Making the changes that were suggested in diff
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 21 insertions, 12 deletions
@@ -3,10 +3,11 @@ pkgbase = gomp-git pkgver = r196.0db49ca pkgrel = 1 url = https://github.com/aditya-K2/gomp - arch = any - license = GPL + arch = x86_64 + license = GPL3 + makedepends = git makedepends = go - source = git+https://github.com/aditya-K2/gomp/ + source = gomp-git::git+https://github.com/aditya-K2/gomp sha256sums = SKIP pkgname = gomp-git @@ -1,26 +1,34 @@ # Maintainer: aditya-K2 <adityakurdunkar2@gmail.com> +# Contributor: Luis Martinez <luis dot martinez at disroot dot org> + pkgname=gomp-git pkgver=r196.0db49ca pkgrel=1 pkgdesc='MPD client inspired by ncmpcpp written in GO.' -arch=('any') +arch=('x86_64') url="https://github.com/aditya-K2/gomp" -license=('GPL') -makedepends=('go') -source=("git+https://github.com/aditya-K2/gomp/") +license=('GPL3') +makedepends=('git' 'go') +source=("$pkgname::git+$url") sha256sums=('SKIP') pkgver() { - cd "${pkgname%-git}" + cd "$pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + cd "$pkgname" + mkdir -p build +} + build() { - cd "${pkgname%-git}" - go build + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + cd "$pkgname" + go build -o build } package() { - cd "${pkgname%-git}" - install -Dm 655 gomp -t "${pkgdir}/usr/bin" + cd "$pkgname" + install -D build/gomp -t "$pkgdir/usr/bin/" } |