summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormityada2016-11-27 23:26:00 +0300
committermityada2016-11-27 23:26:00 +0300
commit363f6d9751e55374962e33c2ae9c80ef8d849e47 (patch)
treec15b9b7ca48b5312acff55f46c34006a94edd235 /PKGBUILD
parent0513854309369752560c8dfcafd28dec7e71064f (diff)
downloadaur-363f6d9751e55374962e33c2ae9c80ef8d849e47.tar.gz
Add desktop file
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 14 insertions, 3 deletions
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"
}