updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / touchmegames / PKGBUILD
blob17b0aa88d6518c92b79c757296e8dfbb281d9b9b
1 # Maintainer: Dany Martineau <dany.luc.martineau@gmail.com>
3 pkgname=touchmegames
4 pkgver=0.2.5
5 pkgrel=2
6 pkgdesc="Collection of strategy, card and misc games."
7 url="http://touchmegames.sourceforge.net/"
8 license=('GPL')
9 arch=('i686' 'x86_64')
10 depends=('gtk2')
11 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz touchmegames-0.2.diff touchmegames.desktop)
12 md5sums=('e66df2c9b5a3a6dd7fdbd13535acda58' '1fb54c6fc31bfd02d2dabd5d5e65cd2a' 'e590e06a67ef7d8d048adcfb1cebcb7b')
14 build() {
15   cd ${srcdir}/$pkgname-$pkgver
16   mkdir -p ${pkgdir}/usr/share/{applications,touchmegames}
17   mkdir -p ${pkgdir}/usr/bin
18   patch -p1 < ../touchmegames-0.2.diff || return 1
19   find src -type f -exec sed -i 's_/usr/local/share/touchmegames/_/usr/share/touchmegames/_g' '{}' \;
20   cd src    
21   make || return 1
22   cp -R {compile4,consume21,dropzone,flogthedolphin,fortresscrackers,fotoseek,foxyboxy,gorillathrilla,images,include,lib,memory,nonogram,secretphrase,sounds,sudoku,template,threescompany,tritowers,videopoker,wordhunt} \
23   ${pkgdir}/usr/share/touchmegames
24   install -m755 touchmegames ${pkgdir}/usr/bin/
25   find "$pkgdir/" -name "*.o" -exec rm -r {} +
26   find "$pkgdir/" -name "*.cpp" -exec rm -r {} +
27   find "$pkgdir/" -name "*.h" -exec rm -r {} +
28   find "$pkgdir/" -name "*.a" -exec rm -r {} + 
29   find "$pkgdir/" -name ".*" -exec rm -r {} +
30   find "$pkgdir/" -name "Makefile" -exec rm -r {} +
31   cp ${srcdir}/touchmegames.desktop ${pkgdir}/usr/share/applications