summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD28
2 files changed, 32 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2f72b9d2105..e77a425c147 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,17 @@
pkgbase = nbxplorer
pkgdesc = A minimalist UTXO tracker for HD Cryptocurrency Wallets.
pkgver = stable
- pkgrel = 1
+ pkgrel = 3
url = https://github.com/dgarage/nbxplorer
arch = any
license = MIT
- makedepends = dotnet-sdk-bin
- depends = dotnet-sdk>=3.1.0
+ depends = dotnet-host-bin
+ depends = dotnet-runtime
+ depends = dotnet-runtime-bin
+ depends = dotnet-sdk
+ depends = dotnet-sdk-bin
+ depends = aspnet-runtime-2.1
+ depends = aspnet-runtime-bin
source = https://github.com/dgarage/nbxplorer/archive/stable.tar.gz
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 2e7a0fc907d..41b4a867c5c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,12 +4,12 @@ pkgcaps=NBXplorer
pkgdesc="A minimalist UTXO tracker for HD Cryptocurrency Wallets."
pkgver='stable'
pkgpath="github.com/dgarage/${pkgname}"
-pkgrel=1
+pkgrel=3
arch=('any')
url="https://${pkgpath}"
license=(MIT)
-makedepends=('dotnet-sdk-bin')
-depends=('dotnet-sdk>=3.1.0')
+makedepends=()
+depends=('dotnet-host-bin' 'dotnet-runtime' 'dotnet-runtime-bin' 'dotnet-sdk' 'dotnet-sdk-bin' 'aspnet-runtime-2.1' 'aspnet-runtime-bin')
source=("${url}/archive/${pkgver}.tar.gz")
sha256sums=('SKIP')
@@ -18,8 +18,26 @@ mv ${srcdir}/${pkgcaps}-${pkgver} ${srcdir}/${pkgname}
cd ${srcdir}/${pkgname}
./build.sh
#set absolute path in run.sh
-echo -e '#!/bin/bash \n #launch nbxplorer \n dotnet run --no-launch-profile --no-build -c Release -p "/usr/lib/nbxplorer/NBXplorer/NBXplorer.csproj" -- $@' > run.sh
+echo -e '#!/bin/bash
+#launch nbxplorer
+dotnet run --no-launch-profile --no-build -c Release -p "/usr/lib/nbxplorer/NBXplorer/NBXplorer.csproj" -- $@
+' > run.sh
chmod +x run.sh
+
+echo -e '[Unit]
+Description=NBXplorer service
+After=network.target
+After=network-online.target
+After=bitcoind.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/nbxplorer
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
+' > nbxplorer.service
}
package() {
@@ -27,6 +45,7 @@ package() {
mkdir -p ${pkgdir}/usr/bin/
mkdir -p ${pkgdir}/usr/lib/
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}/
+mkdir -p ${pkgdir}/usr/lib/systemd/system/
#putting the sources in /usr/lib/nbxplorer
cp -r ${srcdir}/${pkgname}/ ${pkgdir}/usr/lib/
#symlinking run.sh to /usr/bin/nbxplorer
@@ -34,4 +53,5 @@ ln -rTsf $pkgdir/usr/lib/${pkgname}/run.sh ${pkgdir}/usr/bin/${pkgname}
chmod 755 ${pkgdir}/usr/bin/${pkgname}
#install the lisence
install -Dm644 ${pkgdir}/usr/lib/${pkgname}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+install -Dm644 ${pkgdir}/usr/lib/${pkgname}/nbxplorer.service ${pkgdir}/usr/lib/systemd/system/
}