summaryrefslogtreecommitdiff
path: root/community/kcheckers/PKGBUILD
blob: d0cd583aba83f0af9826cc9a486ca87625c8efb1 (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
# $Id: PKGBUILD 55424 2011-09-12 07:36:46Z ebelanger $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=kcheckers
pkgver=0.8.1
pkgrel=7
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}"
  sed -i 's|/usr/local|/usr|' common.h
  qmake kcheckers.pro
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make INSTALL_ROOT="${pkgdir}/usr" install
  install -Dm644 "${srcdir}/kcheckers.desktop" "${pkgdir}/usr/share/applications/kcheckers.desktop"
}