blob: 7e6076d0fdf1c55d7e8863e6705063ca57c528aa (
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
54
|
# Maintainer: redfish <redfish at galactica dot pw>
# Contributor: Lothar_m <lothar_m at riseup dot net>
pkgname='zeronet-git'
_gitname='ZeroNet'
_gitroot='https://github.com/HelloZeroNet/ZeroNet.git'
pkgver=0.7.0
pkgrel=1
arch=('any')
url="https://zeronet.io/"
depends=('python' 'python-gevent>=1.1.0' 'python-gevent-websocket'
'python-msgpack>=0.4.4' 'python-websocket-client' 'python-rsa'
'python-pysocks' 'python-pyasn1' 'python-pyasn1-modules'
'python-base58' 'python-merkletools'
'python-pyelliptic=1.5.6' # 1.5.7 removed ECC API; see ZeroNet #917
'python-bencode.py' 'python-coincurve'
'python-bitcoinlib' 'python-maxminddb')
optdepends=('tor: anonymity')
makedepends=('git')
license=('GPL2')
pkgdesc="Decentralized websites using Bitcoin crypto and the BitTorrent network."
provides=(zeronet)
conflicts=(zeronet)
source=("git+https://github.com/HelloZeroNet/ZeroNet.git#branch=py3"
"zeronet.conf"
"zeronet.service")
install="zeronet.install"
backup=("etc/zeronet.conf")
options=(!strip) # attempt to strip binaries fromA dependent libs fial
pkgver() {
cd "$srcdir/$_gitname"
# Extract version and revision from src/Config.py and append commit
echo -n $(grep -oP '(?<=self.version = ").+(?=")' src/Config.py).r$(grep -oP '(?<=self.rev = )\w+$' src/Config.py).g$(git rev-parse --short HEAD)
}
package() {
cd "$srcdir/$_gitname"
mkdir -p "$pkgdir/opt/zeronet"
# There is no setup.py shipped, so brute-force copy
cp -a "$srcdir/$_gitname/." "$pkgdir/opt/zeronet/"
install -D -m644 "$srcdir/zeronet.conf" "$pkgdir/etc/zeronet.conf"
install -D -m644 "$srcdir/zeronet.service" "$pkgdir/usr/lib/systemd/system/zeronet.service"
# install license
install -D -m644 "$srcdir/$_gitname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha256sums=('SKIP'
'ea735e82dbb10a2c1fda7abfeb2f38c2429044d8254f9e2396c50cecb6f778f8'
'2ee64a1b671a49a1626901a11d4d7fa338c77cb9b7c9facd2f56b087a4a0bb83')
|