mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 18:45:55 +00:00
Add Arch Linux PKGBUILD:
The install process will first fetch the tip of the master branch to build the latest official rippled release. It will also create all the necessary data directories in /var. An optional systemd service definition file is included.
This commit is contained in:
committed by
Vinnie Falco
parent
0f19efac2d
commit
4886772ca3
41
Builds/ArchLinux/PKGBUILD
Normal file
41
Builds/ArchLinux/PKGBUILD
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# Maintainer: Roberto Catini <roberto.catini@gmail.com>
|
||||||
|
|
||||||
|
pkgname=rippled
|
||||||
|
pkgrel=1
|
||||||
|
pkgver=0
|
||||||
|
pkgdesc="Ripple peer-to-peer network daemon"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="https://github.com/ripple/rippled"
|
||||||
|
license=('custom:ISC')
|
||||||
|
depends=('protobuf' 'openssl' 'boost-libs')
|
||||||
|
makedepends=('git' 'scons' 'boost')
|
||||||
|
checkdepends=('nodejs')
|
||||||
|
backup=("etc/$pkgname/rippled.cfg")
|
||||||
|
source=("git://github.com/ripple/rippled.git#branch=master")
|
||||||
|
sha512sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$srcdir/$pkgname"
|
||||||
|
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$srcdir/$pkgname"
|
||||||
|
scons build/rippled
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$srcdir/$pkgname"
|
||||||
|
npm install
|
||||||
|
npm test
|
||||||
|
build/rippled --unittest
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/$pkgname"
|
||||||
|
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
|
install -D build/rippled "$pkgdir/usr/bin/rippled"
|
||||||
|
install -D -m644 doc/rippled-example.cfg "$pkgdir/etc/$pkgname/rippled.cfg"
|
||||||
|
mkdir -p "$pkgdir/var/lib/$pkgname/db"
|
||||||
|
mkdir -p "$pkgdir/var/log/$pkgname"
|
||||||
|
}
|
||||||
10
doc/rippled-example.service
Normal file
10
doc/rippled-example.service
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Ripple Peer-to-Peer Network Daemon
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=nobody
|
||||||
|
ExecStart=/usr/bin/rippled --conf=/etc/rippled/rippled.cfg
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user