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

pkgname=parabola-keyring
pkgver=20181031
_gitver=9bbd912d0397debcdafc9f54ec0aea44dd5f1433
pkgrel=1
pkgdesc='Parabola GNU/Linux-libre PGP keyring'
arch=('any')
url='https://git.parabola.nu/hackers.git/'
license=('GPL')
install=$pkgname.install
source=(https://repo.parabola.nu/other/$pkgname/$pkgname-$pkgver.tar.gz{,.sig})
sha512sums=('84847eeae6d88a104deccdee18fae0b9c26740aeddebc202e6b0bcb3fa87fbea175c33082cc80a0886da0310072383e50716fc32380f6a887e9427995c0d5fac'
            'SKIP')
validpgpkeys=('1B8C5E87702444D3D825CC8086ED62396D5DBA58') # Omar Vega Ramos <ovruni@gnu.org.pe>

mkdepends=('parabola-hackers')
mksource=("hackers-${_gitver}::git://git.parabola.nu/hackers.git#commit=${_gitver}")
mkmd5sums=('SKIP')

mksource() {
	cd "$srcdir"
	mv {,.}hackers-$_gitver
	mkdir .cachedir
	/usr/lib/parabola-hackers/pacman-make-keyring \
		V="$pkgver" \
		PARABOLA_HACKERS_YAMLDIR="$PWD/.hackers-$_gitver/users" \
		cachedir="$PWD/.cachedir"
	bsdtar xf "$pkgname-$pkgver.tar.gz"
}

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