summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBioArchLinuxBot2023-04-25 19:25:09 +0000
committerBioArchLinuxBot2023-04-25 19:25:09 +0000
commit6e2d284c5edb12c81c709498775b9ab7a90501f0 (patch)
tree92214f411e3205439db948ba5a23a0fee89440d7
parentef3b080e31e75a242573adfde17001b1854b5bc7 (diff)
downloadaur-6e2d284c5edb12c81c709498775b9ab7a90501f0.tar.gz
[lilac] updated to 1:1.0.3_beta-1
-rw-r--r--.SRCINFO19
-rwxr-xr-xPKGBUILD42
-rw-r--r--delta.gifbin215 -> 0 bytes
-rw-r--r--open-delta.desktop19
4 files changed, 39 insertions, 41 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e33b3b365916..166321b7db84 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,19 @@
pkgbase = open-delta
pkgdesc = DEscription Language of TAxonomy
- pkgver = 1.02
+ pkgver = 1.0.3_beta
pkgrel = 1
+ epoch = 1
url = https://github.com/AtlasOfLivingAustralia/open-delta
arch = x86_64
license = unknown
- depends = java-runtime
- source = https://github.com/AtlasOfLivingAustralia/open-delta/files/4686516/open-delta-1.02-bin.zip
- source = open-delta.desktop
- source = delta.gif
- sha256sums = f3e2cd3d6abb572e2e856e624a574b100592da40c7c6639a9dd28abcc5e5c993
- sha256sums = 1f5b65a87a3778ec40f40643c937ea6be99474aa3185ead67551f8ee83146fe6
- sha256sums = 583b2666eb51f488aefe27caf870961478fcdd9272304d667d83631fe62e8e0f
+ makedepends = java-environment=8
+ makedepends = maven
+ makedepends = gendesk
+ makedepends = icedtea-web
+ depends = java-runtime=8
+ source = open-delta-1.0.3_beta::https://github.com/AtlasOfLivingAustralia/open-delta/archive/refs/tags/1.0.3-beta.tar.gz
+ source = open-delta.patch::https://patch-diff.githubusercontent.com/raw/AtlasOfLivingAustralia/open-delta/pull/270.patch
+ sha256sums = 794915ca4beb42298ff5d42031b015a6ee2cdb8746a697a24a552abbe5103e0c
+ sha256sums = c5b3974cb7fe1abd54457ff95558d072aa5e6d646c22c7b73843bdf113149e41
pkgname = open-delta
diff --git a/PKGBUILD b/PKGBUILD
index 5fa76714df32..a8f1f45f729b 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,37 @@
-# Maintainer: Malacology <guoyizhang at malacology dot com>
-# Contributor: Malacology <guoyizhang at malacology dot com>
+# Maintainer: Malacology <guoyizhang at malacology dot net>
+# Contributor: Malacology <guoyizhang at malacology dot net>
pkgname=open-delta
-pkgver=1.02
+pkgver=1.0.3_beta
pkgrel=1
+epoch=1
pkgdesc="DEscription Language of TAxonomy"
arch=('x86_64')
url="https://github.com/AtlasOfLivingAustralia/open-delta"
license=('unknown')
-source=("https://github.com/AtlasOfLivingAustralia/open-delta/files/4686516/open-delta-1.02-bin.zip" "open-delta.desktop" "delta.gif")
-sha256sums=('f3e2cd3d6abb572e2e856e624a574b100592da40c7c6639a9dd28abcc5e5c993'
- '1f5b65a87a3778ec40f40643c937ea6be99474aa3185ead67551f8ee83146fe6'
- '583b2666eb51f488aefe27caf870961478fcdd9272304d667d83631fe62e8e0f')
-depends=(
- 'java-runtime'
-)
+source=("$pkgname-$pkgver::${url}/archive/refs/tags/${pkgver//_/-}.tar.gz"
+ "$pkgname.patch::https://patch-diff.githubusercontent.com/raw/AtlasOfLivingAustralia/open-delta/pull/270.patch")
+sha256sums=('794915ca4beb42298ff5d42031b015a6ee2cdb8746a697a24a552abbe5103e0c'
+ 'c5b3974cb7fe1abd54457ff95558d072aa5e6d646c22c7b73843bdf113149e41')
+depends=( 'java-runtime=8')
+makedepends=('java-environment=8' 'maven' 'gendesk' 'icedtea-web')
+prepare(){
+ cd $srcdir/$pkgname-${pkgver//_/-}
+ patch -p1 < $srcdir/$pkgname.patch
+}
+build(){
+ cd $srcdir/$pkgname-${pkgver//_/-}
+ mvn package -Dmaven.test.skip=true
+ gendesk --pkgname "$pkgname" --pkgdesc "$pkgdesc" --exec="$pkgname" --icon="/usr/share/$pkgname/icons/Delta_blue.png"
+ echo "java -jar /usr/share/$pkgname/delta-editor-${pkgver: 0: 5}-SNAPSHOT.jar" > $pkgname
+ chmod +x $pkgname
+}
+#installer/resources/Delta_*.png {blue,green,multi,outline,red,installer.ico}
package() {
- install -dm755 "$pkgdir"/usr/share/{${pkgname},applications}
- mv ${srcdir}/open-delta-${pkgver}/* ${pkgdir}/usr/share/${pkgname}
- install -m 755 ${srcdir}/delta.gif ${pkgdir}/usr/share/${pkgname}/delta.gif
- install -m 755 ${srcdir}/delta.desktop ${pkgdir}/usr/share/applications/delta.desktop
+ install -dm755 "$pkgdir"/usr/{bin,share/{${pkgname}/icons,applications}}
+ chmod -R 755 ${srcdir}/${pkgname}-${pkgver//_/-}/target/installer-jars/*
+ mv ${srcdir}/${pkgname}-${pkgver//_/-}/target/installer-jars/* ${pkgdir}/usr/share/${pkgname}
+ mv ${srcdir}/${pkgname}-${pkgver//_/-}/installer/resources/Delta_*.png ${pkgdir}/usr/share/${pkgname}/icons/
+ install -m 755 ${srcdir}/${pkgname}-${pkgver//_/-}/$pkgname $pkgdir/usr/bin/$pkgname
+ install -m 755 ${srcdir}/${pkgname}-${pkgver//_/-}/$pkgname.desktop ${pkgdir}/usr/share/applications/$pkgname.desktop
}
diff --git a/delta.gif b/delta.gif
deleted file mode 100644
index a1150a0a09f6..000000000000
--- a/delta.gif
+++ /dev/null
Binary files differ
diff --git a/open-delta.desktop b/open-delta.desktop
deleted file mode 100644
index e971c797bd58..000000000000
--- a/open-delta.desktop
+++ /dev/null
@@ -1,19 +0,0 @@
-[Desktop Entry]
-Categories=
-Encoding=UTF-8
-Exec=java -jar /usr/share/open-delta/lib/delta-editor-1.02.jar
-GenericName=
-GenericName[zh]=
-Icon=/usr/share/open-delta/delta.gif
-MimeType=
-Name=DELTA
-Name[zh]=DELTA
-ServiceTypes=
-SwallowExec=
-SwallowTitle=
-Terminal=false
-TerminalOptions=
-Type=Application
-X-KDE-SubstituteUID=false
-X-KDE-Username=root
-