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