diff options
author | redfish | 2020-08-22 14:08:35 -0400 |
---|---|---|
committer | redfish | 2020-08-22 14:08:35 -0400 |
commit | 262fdf48f2161f1c6487490205e311fb068caad3 (patch) | |
tree | 4b4956a97c5161fbd81f5d3964bb4eacf880c185 | |
download | aur-262fdf48f2161f1c6487490205e311fb068caad3.tar.gz |
0.17.3.2
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 53 | ||||
-rw-r--r-- | include.patch | 10 | ||||
-rw-r--r-- | lbrycrd.install | 7 | ||||
-rw-r--r-- | lbrycrd.service | 13 |
6 files changed, 117 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..54f396ac0d57 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = lbrycrd + pkgdesc = Blockchain daemon that provides the digital content namespace for the LBRY protocol + pkgver = 0.17.3.2 + pkgrel = 1 + url = https://lbry.tech + install = lbrycrd.install + arch = i686 + arch = x86_64 + arch = armv7h + arch = aarch64 + license = MIT + makedepends = boost + depends = boost-libs + depends = db4.8 + depends = libevent + depends = openssl + optdepends = miniupnpc + optdepends = qt5-base + optdepends = protobuf + optdepends = qrencode + source = lbrycrd-0.17.3.2.tar.gz::https://github.com/lbryio/lbrycrd/archive/v0.17.3.2.tar.gz + source = lbrycrd.service + source = include.patch + sha256sums = 1ac547aed45272ad4f5ff557407b804b37fc54b5e0b0bc0addedd2c9cb00a970 + sha256sums = ce31e5a787cafe6591f8c987049f93ea9417bc37ec48fa11dc5e521942d1f333 + sha256sums = a29e666e626cf20df809a689fcb76e0950b7c2fbd6fb41eaccb71de1fbef3c51 + +pkgname = lbrycrd + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f915aa3c6776 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.pkg.tar.zst +*.tar.gz + +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d147ffea884d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: redfish <redfish@galactica.pw> + +pkgname=lbrycrd +pkgver=0.17.3.2 +pkgrel=1 +pkgdesc='Blockchain daemon that provides the digital content namespace for the LBRY protocol' +arch=('i686' 'x86_64' 'armv7h' 'aarch64') +url="https://lbry.tech" +license=('MIT') +depends=('boost-libs' 'db4.8' 'libevent' 'openssl') +optdepends=('miniupnpc' 'qt5-base' 'protobuf' 'qrencode') +makedepends=('boost') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/lbryio/lbrycrd/archive/v${pkgver}.tar.gz" + ${pkgname}.service + include.patch) +install=$pkgname.install + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + patch -p1 < $srcdir/include.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./autogen.sh + ./configure --prefix=/usr --without-gui + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make install DESTDIR=$pkgdir + + rm -f $pkgdir/usr/bin/{bench_bitcoin,test_lbrycrd} \ + $pkgdir/usr/lib/libbitcoinconsensus.* \ + $pkgdir/usr/lib/pkgconfig/libbitcoinconsensus.pc \ + $pkgdir/usr/include/bitcoinconsensus.h + + install -Dm644 "$srcdir/${pkgname}.service"\ + "$pkgdir/usr/lib/systemd/system/${pkgname}.service" + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + src/test/test_lbrycrd +} + +sha256sums=('1ac547aed45272ad4f5ff557407b804b37fc54b5e0b0bc0addedd2c9cb00a970' + 'ce31e5a787cafe6591f8c987049f93ea9417bc37ec48fa11dc5e521942d1f333' + 'a29e666e626cf20df809a689fcb76e0950b7c2fbd6fb41eaccb71de1fbef3c51') diff --git a/include.patch b/include.patch new file mode 100644 index 000000000000..7d004175ca17 --- /dev/null +++ b/include.patch @@ -0,0 +1,10 @@ +--- a/src/httpserver.cpp 2020-08-22 13:10:15.488497884 -0400 ++++ b/src/httpserver.cpp 2020-08-22 13:10:35.218791399 -0400 +@@ -13,6 +13,7 @@ + #include <sync.h> + #include <ui_interface.h> + ++#include <deque> + #include <memory> + #include <stdio.h> + #include <stdlib.h> diff --git a/lbrycrd.install b/lbrycrd.install new file mode 100644 index 000000000000..ab48a09368ed --- /dev/null +++ b/lbrycrd.install @@ -0,0 +1,7 @@ +post_install() { + getent passwd lbrycrd &>/dev/null || { + echo -n ">>> Creating lbrycrd user... " + useradd --system --user-group -m --home /var/lib/lbrycrd lbrycrd + echo "done" + } # NOTE: we do not autoremove user due to security concerns (Arch policy) +} diff --git a/lbrycrd.service b/lbrycrd.service new file mode 100644 index 000000000000..e79683579153 --- /dev/null +++ b/lbrycrd.service @@ -0,0 +1,13 @@ +[Unit] +Description=Blockchain daemon for LBRY + +[Service] +User=lbrycrd +Group=lbrycrd +#WorkingDirectory=/var/lib/lbrycrd +ExecStart=/usr/bin/lbrycrdd -server +#SyslogIdentifier=zeronet +#Restart=on-failure + +[Install] +WantedBy=default.target |