updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / checkmate / PKGBUILD
blob826fd8d951a2c85d51ac4647507aa85a80149445
1 # Contributor: zoulnix <http://goo.gl/HQaP>
2 pkgname=checkmate
3 pkgver=0.2.1
4 pkgrel=1
5 pkgdesc="A simple, lightweight, multi-platform chess game."
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/checkmate-chess/"
8 license=('GPL')
9 depends=('sdl_image')
10 makedepends=('gcc' 'make' 'pkg-config')
11 source=(http://checkmate-chess.googlecode.com/files/${pkgname}-${pkgver}-src.tar.gz \
12         ${pkgname}.desktop \
13         logo.png)
14 md5sums=('fa5a250931a20dfed98ed40ca3f5e371' 'c4ddbed4e9b77ccb0fe0d80e5dc2d2a0' \
15          '3ae8ed791d4c35fd39b627c443a7b46f')
17 build() { 
18   cd ${srcdir}/${pkgname}
20   # Change image rootdir
21   sed -i -e 's:pixmaps:\/usr\/share\/checkmate\/images:' src/images.cpp || return 1
23   make -f Makefile.linux || return 1
26 package() {
27   cd ${srcdir}/${pkgname}
28   install -d ${pkgdir}/usr/share/{applications,pixmaps,${pkgname}/images} \
29              ${pkgdir}/usr/bin || return 1
31   install -m755 ${pkgname} ${pkgdir}/usr/bin/ || return 1
32   install -m644 pixmaps/*.png ${pkgdir}/usr/share/${pkgname}/images/ || return 1
33   install -m644 ${startdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/ || return 1
34   install -m644 ${startdir}/logo.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png || return 1