summaryrefslogtreecommitdiff
path: root/libre/parabola-keyring/PKGBUILD
blob: 00a905865180d0cedb01be7d824a62e9a9816315 (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
# Maintainer: Parabola automatic package builder <autobuilder@parabola.nu>

pkgname=parabola-keyring
pkgver=20200714.1
_gitver=af4807e1eac9d428d977e9dfdca7cb5d6c4926f8
pkgrel=1
pkgdesc='Parabola GNU/Linux-libre PGP keyring'
arch=('any')
url='https://git.parabola.nu/hackers.git/'
license=('GPL')
depends=(parabola-hackers)
install=$pkgname.install
source=("hackers-${_gitver}::git://git.parabola.nu/hackers.git#commit=${_gitver}")
sha512sums=('SKIP')
makedepends=('parabola-hackers' 'git')

prepare() {
	cd "$srcdir"
	mv {,.}hackers-$_gitver
	mkdir .cachedir
  export PARABOLA_HACKERS_YAMLDIR="$PWD/.hackers-$_gitver/users"
	/usr/lib/parabola-hackers/pacman-make-keyring \
		V="$pkgver" \
		cachedir="$PWD/.cachedir"
}

package() {
	cd "$srcdir"
	bsdtar xf "$pkgname-$pkgver.tar.gz"
	cd "$srcdir/$pkgname-$pkgver"
	make PREFIX=/usr DESTDIR="${pkgdir}" install
}