blob: 17c761fd4f122abf2deaa4b3f97600e1eed84073 (
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
|
# Maintainer: Martin Trigaux <me@mart-e.be>
pkgname=ardor
pkgver=2.3.3
pkgrel=1
pkgdesc="The Ardor Reference Software Client for use with the Ardor Blockchain Platform."
arch=()
url="https://www.ardorplatform.org"
license=('MIT/GPL')
arch=(any)
makedepends=(unzip)
depends=('jre8-openjdk')
install=$pkgname.install
source=(
https://www.jelurida.com/ardor-client.zip
ardor.service
)
sha256sums=(
'6546e3d8d192c580430de30fdb55d4c552ce0fb27eb4199a462dff7225209eb5'
'7b044d914d07f31d97746d9e5438dbcfedcd2e81e8acadb4c96dd315f2ce4862'
)
package() {
mkdir -p $pkgdir/opt/$pkgname
mkdir -p $pkgdir/usr/bin
cp -rf $pkgname $pkgdir/opt
echo "#!/bin/sh" > $pkgdir/usr/bin/ardor
echo "cd /opt/ardor && bash run.sh" >> $pkgdir/usr/bin/ardor
echo "#!/bin/sh" > $pkgdir/usr/bin/ardor-tor
echo "cd /opt/ardor && bash run-tor.sh" >> $pkgdir/usr/bin/ardor-tor
install -Dm644 "${srcdir}"/ardor.service "${pkgdir}"/usr/lib/systemd/system/ardor.service
chmod 755 $pkgdir/usr/bin/ardor
chmod 755 $pkgdir/usr/bin/ardor-tor
mkdir nxt_db
chmod 777 -R $pkgdir/opt/ardor
}
|