updated on Fri Jan 20 12:03:34 UTC 2012
[aur-mirror.git] / 2h4u / PKGBUILD
blobb26972349ad356bb501b9a7d3eec1d02e48eeb63
1 # Maintainer: Dany Martineau <dany.luc.martineau at gmail.com>
3 pkgname=2h4u
4 pkgver=1.3
5 pkgrel=4
6 pkgdesc="Mix between a Tetris-like game and a wall breaker"
7 url="https://sourceforge.net/projects/toohardforyou"
8 license=('GPL')
9 arch=('i686' 'x86_64')  
10 depends=('sdl_ttf' 'sdl_mixer' 'sdl_image' 'gcc-libs')
11 source=('http://downloads.sourceforge.net/toohardforyou/2H4U-1.3_SOURCES.tar.gz' '2h4u.desktop')
12 md5sums=('e5a4b473c8f7cc3ed4acdf29513d6ab9' '3cee1166823eec807a765bf1f6e71d5a')
13 install=(2h4u.install)
15 build() {
16   cd ${srcdir}/2H4U/scripts
17   make
18   cd ..
19   install -d ${pkgdir}/usr/share/{2h4u,applications}
20   cp -R 2H4U aide data help ${pkgdir}/usr/share/2h4u/
21   mkdir -p ${pkgdir}/usr/bin
22   echo "#!/bin/sh\ncd '/usr/share/2h4u' && ./2H4U" > ${pkgdir}/usr/bin/2h4u
23   chmod a+x ${pkgdir}/usr/bin/2h4u
24   install ${srcdir}/2h4u.desktop ${pkgdir}/usr/share/applications