summaryrefslogtreecommitdiff
path: root/community/kcheckers/PKGBUILD
blob: e09a0644b4e137dce8ed8ee1c346135c55190a1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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' 'mips64el')
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
}