blob: d915e19949af5053444dc2e467f0e4ebf938f5a5 (
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
|
# Maintainer: daonm <https://github.com/the-daonm>
pkgname=gopac
pkgver=1.3.0
pkgrel=1
pkgdesc="A warm, beautiful TUI for Arch Linux package management"
arch=('x86_64' 'aarch64')
url="https://github.com/the-daonm/gopac"
license=('MIT')
depends=('glibc')
makedepends=('go' 'git')
optdepends=('yay: AUR helper' 'paru: AUR helper')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('991758a8b6ad828069cea8819afb7a2c7539a006a903eb708e9f3d79497059fd')
build() {
cd "$pkgname-$pkgver"
export CGO_ENABLED=0
go build -trimpath -ldflags "-s -w -X main.version=v${pkgver}" -o gopac .
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 gopac "$pkgdir/usr/bin/gopac"
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENCE"
install -Dm644 completions/gopac.fish "$pkgdir/usr/share/fish/vendor_completions.d/gopac.fish"
}
|