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

pkgname=parabola-keyring
pkgver=20170424
_giver=none
pkgrel=1
pkgdesc='Parabola GNU/Linux-libre PGP keyring'
arch=('any')
url='https://projects.parabola.nu/hackers.git/'
license=('GPL')
install=$pkgname.install
source=("http://repo.parabola.nu/other/$pkgname/$pkgname-$pkgver.tar.gz"
        "http://repo.parabola.nu/other/$pkgname/$pkgname-$pkgver.tar.gz.sig")
sha512sums=('61c9d47c7e5e3eb20e7ed5ec9f4814762d476b1e69ef1fba5c9dcf5775627582ae0a27723ed182f6e1b17cfa52a1c966e629cac8bbade1b42a4cad8204afd370'
            'SKIP')
validpgpkeys=('D3EAD7F9D076EB9AF650149DA170D6A0B669E21A') # Parabola automatic package builder <dev@lists.parabolagnulinux.org>

mkdepends=('parabola-hackers')
mksource=("hackers-${_gitver}pkgver::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
}