summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLev Lybin2020-01-14 03:13:07 +0700
committerLev Lybin2020-01-14 03:13:07 +0700
commit0b93e1fce275a62e67d0c116e61b50ad98fda4fd (patch)
treec73915d4180520087dfd360d914d355d77be01d4 /PKGBUILD
downloadaur-0b93e1fce275a62e67d0c116e61b50ad98fda4fd.tar.gz
0x0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 48 insertions, 0 deletions
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"
+}