blob: 4ffb28a24fbe42e01110bbfb7b351aa1455dc42a (
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
|
# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697
# Contributor (Arch): Nicolas Pouillard <nicolas.pouillard@gmail.com>
# Contributor (Arch): Peter Simons <simons@cryp.to>
pkgname=nevow
pkgver=0.13.0
pkgrel=1
pkgdesc="web application construction kit written in Python"
arch=('any')
url='http://pypi.python.org/pypi/Nevow'
license=('custom')
depends=('python2' 'python2-setuptools' 'twisted')
source=("https://pypi.python.org/packages/source/N/Nevow/Nevow-${pkgver}.tar.gz"
"https://pypi.python.org/packages/source/N/Nevow/Nevow-${pkgver}.tar.gz.asc")
sha512sums=('80b2709280523ed6ff39b243d503fae6f078baa836d7009875e487a1e3197d989b2f5cc08c8ed3b5a7dc5e0b69f8bb5e5e5e351de90103f7009efda7ef6b0896'
'0ee8efbe7092874f009a81c9ac39eb32e2c3565fdd6107252b675ff3261d98e756807a41e92a2c549cd8eae0ff5a1086fff6368508d6feef21708eea34c4c1ef')
validpgpkeys=('DB24E315EDAAAC13D646709958C0FB1CDE3B7600') # Tristan Seligmann
build(){
echo "Note: If the GPG verification fails, import the PKGBUILD maintainer's GPG key. See: https://wiki.parabola.nu/GnuPG#Import_key"
whirlpoolsum=('57c2fde3dda983d2b869e2c0a71f37404a1872d7aae7cfc6b03fab1817a40a4a301adde8034421dd20450abafb9ac26775936eec324fc9a209dc1d023a8b48d2')
[[ "$(openssl dgst -r -whirlpool Nevow-${pkgver}.tar.gz | awk '{print $1}')" = ${whirlpoolsum} ]] && echo "Whirlpool checksum passed." || { echo "Whirlpool checksum failed!!" ; exit 1; } # This is an added security layer. If SHA512 for some unlikely reason fails, whirlpool will check and abort if it too fails to match.
cd "$srcdir/Nevow-$pkgver"
python2 setup.py build
}
package(){
cd "$srcdir/Nevow-$pkgver"
python2 setup.py install --prefix=/usr --root="$pkgdir" --install-data=/usr/share/"$pkgname"
install -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|