2021-12-16 13:05:13 -07:00
|
|
|
# Maintainer: aditya-K2 <adityakurdunkar2@gmail.com>
|
2021-12-16 14:04:07 -07:00
|
|
|
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
|
|
|
|
|
2021-12-16 13:05:13 -07:00
|
|
|
pkgname=gomp-git
|
2021-12-16 14:04:07 -07:00
|
|
|
pkgver=r196.0db49ca
|
2021-12-16 13:05:13 -07:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='MPD client inspired by ncmpcpp written in GO.'
|
2021-12-16 14:04:07 -07:00
|
|
|
arch=('x86_64')
|
2021-12-16 13:05:13 -07:00
|
|
|
url="https://github.com/aditya-K2/gomp"
|
2021-12-16 14:04:07 -07:00
|
|
|
license=('GPL3')
|
|
|
|
makedepends=('git' 'go')
|
|
|
|
source=("$pkgname::git+$url")
|
2021-12-16 13:05:13 -07:00
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
2021-12-16 14:04:07 -07:00
|
|
|
pkgver() {
|
|
|
|
cd "$pkgname"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$pkgname"
|
|
|
|
mkdir -p build
|
|
|
|
}
|
|
|
|
|
2021-12-16 13:05:13 -07:00
|
|
|
build() {
|
2021-12-16 14:04:07 -07:00
|
|
|
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
|
|
|
|
cd "$pkgname"
|
|
|
|
go build -o build
|
2021-12-16 13:05:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-12-16 14:04:07 -07:00
|
|
|
cd "$pkgname"
|
|
|
|
install -D build/gomp -t "$pkgdir/usr/bin/"
|
2021-12-16 13:05:13 -07:00
|
|
|
}
|