diff options
author | Vitalii Kuzhdin | 2024-12-27 17:05:52 +0100 |
---|---|---|
committer | Vitalii Kuzhdin | 2024-12-27 17:05:52 +0100 |
commit | e53271e07609a170d00312bb20ec409211e16bd7 (patch) | |
tree | 24490e28981834768d9a1adcb83af9243274ea1c | |
download | aur-radiogogo.tar.gz |
Initial build (0.3.2+r5)
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 44 |
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a74d7e02ed58 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = radiogogo + pkgdesc = Go-powered CLI to surf global radio waves via a sleek TUI. + pkgver = 0.3.2+r5+gefad593 + pkgrel = 1 + url = https://github.com/matteo-pacini/RadioGoGo + arch = x86_64 + arch = aarch64 + arch = i686 + arch = armv7h + license = MIT + makedepends = go + depends = glibc + source = RadioGoGo-efad593841c4f8ba8b5918763a57ac6757f9b0f2.tar.gz::https://github.com/matteo-pacini/RadioGoGo/archive/efad593841c4f8ba8b5918763a57ac6757f9b0f2.tar.gz + b2sums = 30ad7d8f4e8d95d4635970ed6932b52ce5628ba9b3c835abc82a9095f3974f8c5bdc84ed443e43eec1e37d45a2aeecd2dc1bab7ce9f99913befff62e8bad5e64 + +pkgname = radiogogo diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..018a3de08144 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..94b8617e514b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com> + +_name="RadioGoGo" +pkgname="${_name,,}" +_commit_rel="af64914529f483f76bec535f7c4eed258f25e42d" # 0.3.2 +_commit="efad593841c4f8ba8b5918763a57ac6757f9b0f2" # r5 +pkgver="0.3.2+r5+g${_commit::7}" +pkgrel=1 +pkgdesc="Go-powered CLI to surf global radio waves via a sleek TUI." +arch=('x86_64' 'aarch64' 'i686' 'armv7h') +url="https://github.com/matteo-pacini/${_name}" +license=('MIT') +depends=('glibc') +makedepends=('go') +_pkgsrc="${_name}-${_commit}" +source=("${_pkgsrc}.tar.gz::${url}/archive/${_commit}.tar.gz") +b2sums=('30ad7d8f4e8d95d4635970ed6932b52ce5628ba9b3c835abc82a9095f3974f8c5bdc84ed443e43eec1e37d45a2aeecd2dc1bab7ce9f99913befff62e8bad5e64') + +prepare() { + cd "${srcdir}/${_pkgsrc}" + mkdir -p "build" +} + +build() { + cd "${srcdir}/${_pkgsrc}" + 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 "build/${pkgname}" . +} + +check() { + cd "${srcdir}/${_pkgsrc}" + go test ./... +} + +package() { + cd "${srcdir}/${_pkgsrc}" + install -vDm755 "build/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + install -vDm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md" + install -vDm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |