commit 256825c76f0490ab81335ec3fb0bd78c1d616690 Author: moson-mo Date: Sun Mar 27 12:00:05 2022 +0200 v0.1.0 diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..557d8d2fa3a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = pacseek + pkgdesc = A terminal user interface for searching and installing Arch Linux packages + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/moson-mo/pacseek + arch = x86_64 + license = GPL2 + makedepends = go + source = https://github.com/moson-mo/pacseek/archive/v0.1.0.tar.gz + sha256sums = 636af34efa810fb9a574e9508472c1bffaae1d93a69e523c5d46db835cf273c0 + +pkgname = pacseek diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000000..31d27563afe --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..11024a4eb8e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Mario Oenning + +pkgname=pacseek +pkgver=0.1.0 +pkgrel=1 +pkgdesc='A terminal user interface for searching and installing Arch Linux packages' +arch=('x86_64') +url="https://github.com/moson-mo/$pkgname" +license=('GPL2') +makedepends=('go') +source=("$url/archive/v$pkgver.tar.gz") +sha256sums=('636af34efa810fb9a574e9508472c1bffaae1d93a69e523c5d46db835cf273c0') + +prepare(){ + cd "$pkgname-$pkgver" + mkdir -p build/ +} + +build() { + cd "$pkgname-$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 build . +} + +package() { + cd "$pkgname-$pkgver" + + # bin + install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname + + # license + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}