blob: eb7ec2bfb0c7327313e27e6a2a1fb6676ae853a8 (
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
55
56
57
58
59
60
61
62
63
64
65
66
|
# 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.3.5.r26.g5b821c4
pkgrel=1
arch=('any')
url="https://zeronet.io/"
depends=('python2>=2.7.10'
'python2-gevent'
'python2-msgpack'
)
makedepends=('git')
license=('GPL2')
pkgdesc="Decentralized websites using Bitcoin crypto and the BitTorrent network."
provides=(zeronet)
conflicts=(zeronet)
source=("git://github.com/HelloZeroNet/ZeroNet.git"
"zeronet.conf"
"zeronet.service")
md5sums=('SKIP'
'1c2281156533c912e407cf64f6a57e96'
'35a1d8325701eb000a4c3a28b7499096')
install="zeronet.install"
backup=("etc/zeronet.conf")
options=(!strip) # attempt to strip binaries fromA dependent libs fial
pkgver() {
cd "$srcdir/$_gitname"
# Most recent unannotated tag reachable from last commit without 'v' prefix
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd ${srcdir}
msg "Connecting to GIT server...."
if [ -d "$_gitname" ] ; then
cd "$_gitname" && git pull origin master
msg "The local files are updated."
else
git clone ${_gitroot}
fi
msg "GIT checkout done or server timeout"
}
package() {
cd "$srcdir/$_gitname"
mkdir -p "$pkgdir/opt/zeronet"
# zeronet.py expects log directory to exist
mkdir -p "$pkgdir/opt/zeronet/log"
# 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"
}
|