blob: ca009a5d68d218f096c111dc05399eb1307aed0b (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: JJ Style <aur@jj-style.slmail.me>
_repo=gobal-player
pkgname=gobal-player-tui
pkgver=0.1.20
pkgrel=1
epoch=
pkgdesc="Unofficial TUI app for Global Player radio."
arch=("x86_64")
url="https://github.com/jj-style/$_repo"
license=('GPL-3.0-or-later')
groups=()
depends=("vlc" "glibc")
makedepends=("go>=1.22", "git")
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$_repo-$pkgver.tar.gz::$url/archive/v${pkgver}.tar.gz")
noextract=()
sha256sums=('9e6c64f0a45bcbd71e716aecf5416d8305a6bb3c35e15494f135531c592f2d2c')
validpgpkeys=()
build() {
cd "$_repo-$pkgver"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -o $pkgname ./cmd/$pkgname
}
package() {
cd "$_repo-$pkgver"
install -vDm755 -t "$pkgdir/usr/bin" $pkgname
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|