summaryrefslogtreecommitdiff
path: root/community/kcheckers/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/kcheckers/PKGBUILD')
-rwxr-xr-xcommunity/kcheckers/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/kcheckers/PKGBUILD b/community/kcheckers/PKGBUILD
new file mode 100755
index 000000000..12e554a8d
--- /dev/null
+++ b/community/kcheckers/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 8492 2010-01-20 09:33:27Z andrea $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
+
+pkgname=kcheckers
+pkgver=0.8.1
+pkgrel=6
+pkgdesc="Qt4-based checkers boardgame"
+arch=('i686' 'x86_64')
+url="http://qcheckers.sourceforge.net/"
+license=('GPL')
+depends=('qt')
+source=(http://downloads.sourceforge.net/qcheckers/${pkgname}-${pkgver}.tar.gz
+ 'kcheckers.desktop')
+md5sums=('793736a007cd92122dfd91bcfd14ab69'
+ '8b8682edd870c2692f9c7d538263e0f5')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ # Fix the prefix
+ sed -i 's#/usr/local#/usr#' common.h
+
+ qmake kcheckers.pro || return 1
+ make || return 1
+
+ install -d $pkgdir/usr/bin
+ install -m755 kcheckers $pkgdir/usr/bin || return 1
+ install -d ${pkgdir}/usr/share/kcheckers
+ cp -R i18n icons themes $pkgdir/usr/share/kcheckers || return 1
+ chmod 644 $pkgdir/usr/share/kcheckers/i18n/{kcheckers_fr.ts,kcheckers_ru.ts}
+ install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
+}