Compare commits

..

No commits in common. "main" and "pacseek" have entirely different histories.

4 changed files with 69 additions and 3 deletions

17
.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = pacseek
pkgdesc = A terminal user interface for searching and installing Arch Linux packages
pkgver = 1.5.2
pkgrel = 1
url = https://github.com/moson-mo/pacseek
arch = x86_64
arch = aarch64
license = GPL2
makedepends = go
depends = pacman
optdepends = xdg-utils: open URL on click support
optdepends = curl: show PKGBUILD support
optdepends = less: show PKGBUILD support
source = https://github.com/moson-mo/pacseek/archive/v1.5.2.tar.gz
sha256sums = ca1d98776485300698103c5ea16dd402d56e36d6429d99708e535ef53ee6d419
pkgname = pacseek

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO

48
PKGBUILD Normal file
View file

@ -0,0 +1,48 @@
# Maintainer: Mario Oenning <mo-son at mailbox dot org>
pkgname=pacseek
pkgver=1.5.2
pkgrel=1
pkgdesc='A terminal user interface for searching and installing Arch Linux packages'
arch=('x86_64' 'aarch64')
url="https://github.com/moson-mo/$pkgname"
license=('GPL2')
depends=('pacman')
makedepends=('go')
optdepends=('xdg-utils: open URL on click support'
'curl: show PKGBUILD support'
'less: show PKGBUILD support')
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=('ca1d98776485300698103c5ea16dd402d56e36d6429d99708e535ef53ee6d419')
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"
# .desktop
install -Dm644 "assets/$pkgname.desktop" "$pkgdir/usr/share/applications/org.moson.$pkgname.desktop"
# icon
install -Dm644 "assets/$pkgname.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/$pkgname.png"
}

View file

@ -1,3 +0,0 @@
# aur.git
This is a experimental mirror of the aur.git repository backing [the AUR](https://aur.archlinux.org).