blob: ce7747d8679e25611347349ae59dc02760de408c (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Parabola automatic package builder <autobuilder@parabola.nu>
# NOTE: This PKGBUILD does not need to be edited manually.
# The package is normally built automatically by autobuilder.
# To generate a new keyring, push a new commit to hackers.git.
# eg: $ git commit --allow-empty --message=rebuild
# $ git push parabola master
# The autobuilder will modify this PKGBUILD, build and publish the package,
# and commit the modified PKGBUILD to abslibre.
pkgname=parabola-keyring
pkgver=20220322
_gitver=af4575f5afbdca6b556d182dab149e181edbd4b4
pkgrel=1
pkgdesc='Parabola GNU/Linux-libre PGP keyring'
arch=('any')
url='https://git.parabola.nu/hackers.git/'
license=('GPL')
makedepends=(parabola-hackers git)
install=$pkgname.install
source=("hackers-${_gitver}::git://git.parabola.nu/hackers.git#commit=${_gitver}")
sha512sums=('SKIP')
prepare() {
cd "$srcdir"
mv {,.}hackers-$_gitver
mkdir .cachedir
export PARABOLA_HACKERS_YAMLDIR="$PWD/.hackers-$_gitver/users"
local net_err_msg="ERROR: this PKGBUILD requires the build host to be connected to the internet"
curl www.parabola.nu &> /dev/null || ! echo "${net_err_msg}" || return 1
# NOTE: the current 'parabola-hackers' package does not yet recognize
# the 'keyserver' env-var - the keyserver is still hard-coded;
# and it is now invalid - 'parabola-hackers' must be rebuilt for this;
# but that build currently has a problem - the autobuilder handles
# this now, via an un-published kludge in the autobuild.sh script
# TODO: remove this note, after 'parabola-hackers' has been rebuilt
/usr/lib/parabola-hackers/pacman-make-keyring \
V="$pkgver" \
keyserver='hkp://pgp.cyberbits.eu:11371' \
cachedir="$PWD/.cachedir"
}
package() {
cd "$srcdir"
bsdtar xf "$pkgname-$pkgver.tar.gz"
cd "$srcdir/$pkgname-$pkgver"
make PREFIX=/usr DESTDIR="${pkgdir}" install
}
|