summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartłomiej Piotrowski2018-01-06 20:15:11 +0100
committerBartłomiej Piotrowski2018-01-06 20:15:11 +0100
commit99c83d5bba1d63785adf2cdcae4070c8362ebaa8 (patch)
treed1df858d2975931c063d6c3ee258f784883eda6c
downloadaur-dguitar.tar.gz
Import from official repositories
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD32
-rw-r--r--dguitar.desktop10
-rw-r--r--dguitar.sh6
4 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..412f8ed99cc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = dguitar
+ pkgdesc = A guitar pro tab reader
+ pkgver = 0.5.8
+ pkgrel = 6
+ url = http://dguitar.sourceforge.net/
+ arch = any
+ license = GPL
+ makedepends = unzip
+ depends = java-runtime
+ depends = sh
+ source = http://download.sf.net/dguitar/DGuitar-0.5.8.zip
+ source = dguitar.sh
+ source = dguitar.desktop
+ md5sums = 3d10723d96203705b4044b48a755990f
+ md5sums = fd6800cb0baddac00c9c058c42e6cd6a
+ md5sums = 4f5a55d4dd27871b5d9e78865c26d81a
+
+pkgname = dguitar
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..de63c56e6f0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 194152 2016-10-31 13:48:24Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Sebastien Piccand <sebcactus@gmail.com>
+
+pkgname=dguitar
+pkgver=0.5.8
+pkgrel=6
+pkgdesc="A guitar pro tab reader"
+arch=('any')
+url="http://dguitar.sourceforge.net/"
+license=("GPL")
+depends=('java-runtime' 'sh')
+makedepends=('unzip')
+source=(http://download.sf.net/$pkgname/DGuitar-$pkgver.zip
+ dguitar.sh
+ dguitar.desktop)
+md5sums=('3d10723d96203705b4044b48a755990f'
+ 'fd6800cb0baddac00c9c058c42e6cd6a'
+ '4f5a55d4dd27871b5d9e78865c26d81a')
+
+package() {
+ cd "$srcdir"/DGuitar-$pkgver
+ install -D -m644 dist/DGuitar.jar "$pkgdir"/usr/share/java/dguitar/DGuitar.jar
+ install -D -m644 dist/Common.jar "$pkgdir"/usr/share/java/dguitar/Common.jar
+ install -D -m755 "$srcdir"/dguitar.sh "$pkgdir"/usr/bin/dguitar
+ install -D -m644 "$srcdir"/dguitar.desktop "$pkgdir"/usr/share/applications/dguitar.desktop
+ install -D -m644 skins/dguitar_32x32.png "$pkgdir"/usr/share/pixmaps/dguitar.png
+ mkdir -p "$pkgdir"/usr/share/dguitar
+ cp -r skins lang files "$pkgdir"/usr/share/dguitar
+ chmod -R 644 "$pkgdir"/usr/share/dguitar/*
+ chmod 755 "$pkgdir"/usr/share/dguitar/{lang,files,skins,skins/{default,compact}}
+}
diff --git a/dguitar.desktop b/dguitar.desktop
new file mode 100644
index 00000000000..13c484b1960
--- /dev/null
+++ b/dguitar.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=DGuitar
+Comment=A Guitar Pro file reader and player
+Exec=dguitar
+Terminal=false
+Type=Application
+Icon=dguitar.png
+Categories=Application;Audio;
+StartupNotify=true
diff --git a/dguitar.sh b/dguitar.sh
new file mode 100644
index 00000000000..4413c01b916
--- /dev/null
+++ b/dguitar.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+for name in /usr/share/java/dguitar/*.jar ; do
+ CP=$CP:$name
+done
+cd /usr/share/dguitar
+java -cp $CP -Dapple.laf.useScreenMenuBar=true -Dcom.apple.mrj.application.apple.menu.about.name=DGuitar dguitar.gui.DGuitar