updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / mingw32-ltris / PKGBUILD
blob54a46648a7abc11d6cd8ebe91b66eac717cc9a4e
1 # Maintainer: Jonathan Liu <net147@gmail.com>
2 pkgname=mingw32-ltris
3 _realpkgname=ltris
4 pkgver=1.0.18
5 pkgrel=1
6 pkgdesc="A tetris clone where you have a bowl with blocks falling down."
7 arch=('any')
8 url="http://lgames.sourceforge.net/index.php?project=LTris"
9 license=('GPL')
10 depends=('mingw32-gettext' 'mingw32-libpng' 'mingw32-sdl_mixer')
11 source=("http://downloads.sourceforge.net/lgames/${_realpkgname}-${pkgver}.tar.gz")
12 md5sums=('533be97db3f6589e879b905c66a44300')
14 build() {
15   cd "${srcdir}/${_realpkgname}-${pkgver/_/-}"
16   unset LDFLAGS
17   LIBS='-lintl' ./configure --host=i486-mingw32 --prefix=/usr/i486-mingw32 --disable-install
18   make
21 package() {
22   cd "${srcdir}/${_realpkgname}-${pkgver/_/-}"
23   install -D -m644 src/ltris.exe "${pkgdir}/usr/lib/i486-mingw32/opt/${_realpkgname}/ltris.exe"
24   install -d -m755 "${pkgdir}/usr/lib/i486-mingw32/opt/${_realpkgname}"/{gfx,sounds}
25   cp -r src/{gfx,sounds} "${pkgdir}/usr/lib/i486-mingw32/opt/${_realpkgname}/"
26   find "${pkgdir}" -type f -name 'Makefile*' -delete