summaryrefslogtreecommitdiff
path: root/libre/parabola-keyring/PKGBUILD
blob: b2d2366e592ad33fdeb5fabd2a67986aa0a66ac8 (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=20180720
_gitver=811ae57db75212e32cafab08a503379e55edfcf2
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=('036dd959bd8cf3ff4224ec08241382b483e2695068a1efcaaf167407ffc58c0fcd0f209cef8981f87167eeaad88aeddad4bd6ed78ea66aee3d51f2f9164bb607'
            'SKIP')
validpgpkeys=('D3EAD7F9D076EB9AF650149DA170D6A0B669E21A') # Parabola automatic package builder <dev@lists.parabolagnulinux.org>

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
}