summaryrefslogtreecommitdiff
path: root/community/freecol/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/freecol/PKGBUILD')
-rw-r--r--community/freecol/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/freecol/PKGBUILD b/community/freecol/PKGBUILD
new file mode 100644
index 000000000..edff300d7
--- /dev/null
+++ b/community/freecol/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 30919 2010-10-23 14:21:56Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: TDY <tdy@gmx.com>
+# Contributor: Nelson Menon <nelsonmenon@gmail.com insanatorium.wordpress.com>
+
+pkgname=freecol
+pkgver=0.9.5
+pkgrel=1
+pkgdesc="A turn-based strategy game based on Colonization"
+arch=('i686' 'x86_64')
+url="http://www.freecol.org/"
+license=('GPL')
+depends=('java-runtime')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ fc.desktop fc.sh)
+md5sums=('6d5cb3b18cede24196f360b225ff7ccc'
+ '55594d770904af3e3e3852d375085357'
+ 'ae473cd1d86f8f764250ee00b6fda90b')
+
+build() {
+ cd "$srcdir/$pkgname"
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+
+ install -Dm644 FreeCol.jar "$pkgdir/usr/share/java/$pkgname/FreeCol.jar"
+ install -Dm644 FreeCol.pdf "$pkgdir/usr/share/doc/$pkgname/FreeCol.pdf"
+ install -Dm644 $pkgname.xpm "$pkgdir/usr/share/pixmaps/$pkgname.xpm"
+ install -Dm644 ../fc.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
+ install -Dm755 ../fc.sh "$pkgdir/usr/bin/$pkgname"
+
+ cp -r data jars "$pkgdir/usr/share/java/$pkgname/"
+ find "$pkgdir/usr/share/java/$pkgname" -type d -exec chmod 755 '{}' \;
+ find "$pkgdir/usr/share/java/$pkgname" -type f -exec chmod 644 '{}' \;
+}