1 # Contributor: zoulnix <http://goo.gl/HQaP>
5 pkgdesc="A simple, lightweight, multi-platform chess game."
7 url="http://code.google.com/p/checkmate-chess/"
10 makedepends=('gcc' 'make' 'pkg-config')
11 source=(http://checkmate-chess.googlecode.com/files/${pkgname}-${pkgver}-src.tar.gz \
14 md5sums=('fa5a250931a20dfed98ed40ca3f5e371' 'c4ddbed4e9b77ccb0fe0d80e5dc2d2a0' \
15 '3ae8ed791d4c35fd39b627c443a7b46f')
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
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