summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD48
-rw-r--r--btdex.desktop7
-rw-r--r--btdex.install9
-rwxr-xr-xbtdex.sh7
6 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d00ac896d43
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = btdex-git
+ pkgdesc = Decentralized exchange system running on the Burst blockchain
+ pkgver = v0.1.12.r25.g2f8d1e7
+ pkgrel = 1
+ url = https://github.com/btdex/btdex
+ install = btdex.install
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = java-environment
+ depends = java-environment
+ depends = xdg-utils
+ provides = btdex
+ conflicts = btdex
+ options = !strip
+ source = git+https://github.com/btdex/btdex.git
+ source = btdex.sh
+ source = btdex.desktop
+ sha256sums = SKIP
+ sha256sums = 162e5c9fad5d5a5e5a59192a64ce6d1a5bf189465eeae4130332b3838f4d9c11
+ sha256sums = dec0616fc2a04203dcde09d5bd25e35415b6c4bac60752683bee43453388a955
+
+pkgname = btdex-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..272b1e18df9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+*
+!PKGBUILD
+!.SRCINFO
+!*.install
+!.gitignore
+!btdex.desktop
+!btdex.sh \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5668987611d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Lev Lybin <lev.lybin@gmail.com>
+# Contributor: Lev Lybin <lev.lybin@gmail.com>
+
+_pkgname=btdex
+pkgname=btdex-git
+pkgver=v0.1.12.r25.g2f8d1e7
+pkgrel=1
+pkgdesc='Decentralized exchange system running on the Burst blockchain'
+arch=(x86_64)
+url='https://github.com/btdex/btdex'
+license=(GPL3)
+options=(!strip)
+depends=(java-environment xdg-utils)
+makedepends=(git java-environment)
+conflicts=(btdex)
+provides=(btdex)
+install=btdex.install
+source=(git+https://github.com/btdex/btdex.git
+ btdex.sh
+ btdex.desktop)
+sha256sums=('SKIP'
+ '162e5c9fad5d5a5e5a59192a64ce6d1a5bf189465eeae4130332b3838f4d9c11'
+ 'dec0616fc2a04203dcde09d5bd25e35415b6c4bac60752683bee43453388a955')
+
+
+pkgver() {
+ cd $srcdir/${_pkgname}
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd $srcdir/${_pkgname}
+ ./gradlew shadowJar
+}
+
+package() {
+ cd $srcdir
+
+ install -d $pkgdir/opt/${_pkgname}
+ install -Dm644 ${_pkgname}/build/libs/btdex-all.jar "$pkgdir/opt/${_pkgname}/btdex.jar"
+ install -Dm755 btdex.sh "$pkgdir/opt/${_pkgname}/btdex.sh"
+ install -d "$pkgdir/usr/bin"
+ ln -sf "$pkgdir/opt/${_pkgname}/btdex.sh" "$pkgdir/usr/bin/btdex"
+
+ # Menu entry
+ install -Dm644 "${_pkgname}.desktop" -t "$pkgdir/usr/share/applications"
+ install -Dm644 ${_pkgname}/build/resources/main/icon.png "$pkgdir/usr/share/pixmaps/${_pkgname}.png"
+}
diff --git a/btdex.desktop b/btdex.desktop
new file mode 100644
index 00000000000..a3f003bc026
--- /dev/null
+++ b/btdex.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Type=Application
+Name=BTDEX
+Comment=Decentralized exchange system running on the Burst blockchain
+Icon=/usr/share/pixmaps/btdex.png
+Exec=/opt/btdex/btdex.sh
+Categories=Network;
diff --git a/btdex.install b/btdex.install
new file mode 100644
index 00000000000..59beae0f39f
--- /dev/null
+++ b/btdex.install
@@ -0,0 +1,9 @@
+post_install() {
+ update-mime-database /usr/share/mime 1> /dev/null
+ update-desktop-database -q
+ xdg-icon-resource forceupdate --theme hicolor
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/btdex.sh b/btdex.sh
new file mode 100755
index 00000000000..b825603e096
--- /dev/null
+++ b/btdex.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+CONFIG_DIR="$HOME/.config/btdex"
+
+mkdir -p $CONFIG_DIR
+
+java -jar /opt/btdex/btdex.jar -f "$CONFIG_DIR/config.properties"