summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoses Narrow2019-04-19 13:39:52 -0500
committerMoses Narrow2019-04-19 13:39:52 -0500
commitb83a3acc0104ad4ff4f3035d9dfbcc3085ef53c4 (patch)
treed248b9feef23480c88b1a34abbbed0b184d6e6e3
downloadaur-b83a3acc0104ad4ff4f3035d9dfbcc3085ef53c4.tar.gz
first commit; added PKGBUILD & .SRCINFO
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD37
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3d16c89903d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = nbxplorer
+ pkgdesc = A minimalist UTXO tracker for HD Cryptocurrency Wallets.
+ pkgver = stable
+ pkgrel = 1
+ url = https://github.com/dgarage/nbxplorer
+ arch = any
+ license = MIT
+ depends = dotnet-sdk
+ source = https://github.com/dgarage/nbxplorer/archive/stable.tar.gz
+ validpgpkeys = DE08F924EEE93832DABC642CA8DC761B1C0C0CFC
+ sha256sums = SKIP
+
+pkgname = nbxplorer
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f100e5a06f3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Moses Narrow <moe_narrow@use.startmail.com>
+pkgname=nbxplorer
+pkgcaps=NBXplorer
+pkgdesc="A minimalist UTXO tracker for HD Cryptocurrency Wallets."
+pkgver='stable'
+pkgpath="github.com/dgarage/$pkgname"
+pkgrel=1
+arch=('any')
+url="https://${pkgpath}"
+license=(MIT)
+depends=(dotnet-sdk)
+source=("$url/archive/stable.tar.gz")
+sha256sums=('SKIP')
+validpgpkeys=('DE08F924EEE93832DABC642CA8DC761B1C0C0CFC')
+
+build() {
+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
+chmod +x run.sh
+}
+
+package() {
+#create dir structure
+mkdir -p $pkgdir/usr/bin/
+mkdir -p $pkgdir/usr/lib/
+mkdir -p $pkgdir/usr/share/licenses/$pkgname/
+#putting the sources in /usr/lib/nbxplorer
+cp -r $srcdir/$pkgname/ $pkgdir/usr/lib/
+#symlinking run.sh to /usr/bin/nbxplorer
+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
+}