1 # Maintainer: Dany Martineau <dany.luc.martineau@gmail.com>
6 pkgdesc="Collection of strategy, card and misc games."
7 url="http://touchmegames.sourceforge.net/"
11 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz touchmegames-0.2.diff touchmegames.desktop)
12 md5sums=('e66df2c9b5a3a6dd7fdbd13535acda58' '1fb54c6fc31bfd02d2dabd5d5e65cd2a' 'e590e06a67ef7d8d048adcfb1cebcb7b')
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' '{}' \;
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