blob: 092c22d15fa1e715da3e2b135f9b6a2ed7e692b0 (
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
35
36
|
# Maintainer: wildeyedskies <zoenb@mailbox.org>
pkgname=stmp-git
pkgver=r41.5e140a9
pkgrel=1
pkgdesc="Subsonic Terminal Music Player"
arch=('x86_64' 'aarch64')
url="https://github.com/wildeyedskies/stmp"
license=('GPL')
depends=('mpv')
makedepends=('go')
source=("${pkgname}::git+https://github.com/wildeyedskies/stmp")
sha256sums=('SKIP')
build() {
export GOPATH="$srcdir"/gopath
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -gcflags=all=-trimpath=${PWD}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_ENABLED=1
cd "$srcdir/$pkgname"
go get -d
go build -a \
-o "$pkgname-$pkgver" \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
.
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/stmp"
}
|