Skip to content

Instantly share code, notes, and snippets.

@noidi
Created December 8, 2011 16:23
Show Gist options
  • Save noidi/1447491 to your computer and use it in GitHub Desktop.
Save noidi/1447491 to your computer and use it in GitHub Desktop.
# HG changeset patch
# Parent cc08f20788db64c79c232265909150ee3677493a
Use the JAR from tomighty.org
diff -r cc08f20788db PKGBUILD
--- a/PKGBUILD Thu Dec 08 17:48:11 2011 +0200
+++ b/PKGBUILD Thu Dec 08 18:09:05 2011 +0200
@@ -8,10 +8,13 @@
url="http://www.tomighty.org/"
license=('Apache')
depends=('java-runtime')
-makedepends=('git' 'maven' 'java-environment' 'imagemagick')
-source=('tomighty' 'tomighty.desktop')
+makedepends=('git' 'imagemagick')
+source=('tomighty'
+ 'tomighty.desktop'
+ 'http://tomighty.googlecode.com/files/$pkgname-$pkgver.jar')
md5sums=('941bdeb609169335cea3e9cf40904883'
- '66425a9e185788f720b466ca1caf5769')
+ '66425a9e185788f720b466ca1caf5769'
+ '73094fd45e3683dc0b560642e0543176')
git_location="git://github.com/ccidral/tomighty.git"
git_commit='50d0094c024f1923bd0d6ff1bf77572ae5f5b5f6'
@@ -32,8 +35,6 @@
fi
msg "GIT checkout done"
-
- /opt/maven/bin/mvn clean package
}
package() {
@@ -42,7 +43,7 @@
convert $srcdir/$pkgname-git/img/tomato.ico $srcdir/$pkgname-git/img/tomato.png
install -Dm 644 $srcdir/$pkgname-git/img/tomato-0.png $pkgdir/usr/share/pixmaps/$pkgname.png
- install -Dm 644 $srcdir/$pkgname-git/target/$pkgname-$pkgver.jar $pkgdir/usr/share/java/$pkgname/$pkgname.jar
+ install -Dm 644 $srcdir/$pkgname-$pkgver.jar $pkgdir/usr/share/java/$pkgname/$pkgname.jar
install -Dm 644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
install -Dm 755 $pkgname $pkgdir/usr/bin/$pkgname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment