summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD17
-rw-r--r--jbead.desktop8
3 files changed, 26 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 337d67f3c07..b8b3eac3fc4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,18 @@
pkgbase = jbead
pkgdesc = A bead rope crochet design software
pkgver = 1.0.23
- pkgrel = 1
+ pkgrel = 2
url = http://www.jbead.ch/
arch = any
license = GPL3
+ makedepends = unzip
depends = java-runtime
source = http://www.jbead.ch/releases/jbead_1.0.23_linux.tar.gz
source = jbead
+ source = jbead.desktop
md5sums = 992459d3e9a50ba47df741fec1a75b9c
md5sums = 646212e9c1c27773bf7c188466eb4ced
+ md5sums = ccdc5f8ffae08530108fd5aeaa2deb0f
pkgname = jbead
diff --git a/PKGBUILD b/PKGBUILD
index e981f78c35d..f7c32464f88 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,36 @@
# Maintainer: mityada <mityada@gmail.com>
pkgname=jbead
pkgver=1.0.23
-pkgrel=1
+pkgrel=2
pkgdesc="A bead rope crochet design software"
arch=('any')
url="http://www.jbead.ch/"
license=('GPL3')
depends=('java-runtime')
+makedepends=('unzip')
source=("http://www.jbead.ch/releases/jbead_${pkgver}_linux.tar.gz"
- "jbead")
+ "jbead"
+ "jbead.desktop")
md5sums=('992459d3e9a50ba47df741fec1a75b9c'
- '646212e9c1c27773bf7c188466eb4ced')
+ '646212e9c1c27773bf7c188466eb4ced'
+ 'ccdc5f8ffae08530108fd5aeaa2deb0f')
+
+prepare() {
+ cd "$srcdir/${pkgname}_$pkgver"
+
+ unzip -o "$pkgname.jar" "images/jbead-32.png"
+}
package() {
cd "$srcdir"
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
cd "${pkgname}_$pkgver"
install -Dm644 "$pkgname.jar" "$pkgdir/usr/share/$pkgname/$pkgname.jar"
install -d "$pkgdir/usr/share/doc/$pkgname/samples"
install -m644 samples/*.jbb "$pkgdir/usr/share/doc/$pkgname/samples"
+ install -Dm644 "images/jbead-32.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}
diff --git a/jbead.desktop b/jbead.desktop
new file mode 100644
index 00000000000..7d5726b992c
--- /dev/null
+++ b/jbead.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=jbead
+Comment=A bead rope crochet design software
+Exec=jbead
+Icon=jbead
+Terminal=false
+Type=Application
+Categories=Graphics;Java;