1 # Maintainer: Michal Kowalski <kowalski TOD michal TA gmail TOD com>
2 # Contributor: Kevin Whitaker <eyecreate at gmail dot com>
8 pkgdesc="Roguelike graphics/utility library"
10 url="http://doryen.eptalys.net/libtcod/"
13 depends=('sdl' 'libpng' 'zlib' 'libgl' 'gcc-libs' 'libx11')
14 makedepends=('cmake' 'subversion' 'upx')
15 conflicts=('libtcod-beta' 'libtcod-hg' 'libtcod')
20 md5sums=('fd3417b535ad0dbf91eeffd42202b81e'
21 '9968e42f7f7e06d333fadb0e134eda00')
23 _svntrunk=http://doryen.eptalys.net/svn-libtcod/trunk
25 _makedir=cmake/Release
30 if [ -d $_svnmod/.svn ]; then
31 (cd $_svnmod && svn up -r $pkgver) || return 1
33 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
37 cp -r $_svnmod $_svnmod-build
40 patch -p0 < ../png.patch
41 patch -p0 < ../cmake.patch
45 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${_prefix} -G "Unix Makefiles" $srcdir/$_svnmod-build &&
50 cd $srcdir/$_svnmod-build/$_makedir
51 make DESTDIR=$pkgdir install || return 1
52 # strip --strip-unneeded $pkgdir/${_prefix}/lib/${_rpkgname}*.so
53 rm -rf "$pkgdir/${_prefix}/share"
54 install -D -m644 "$srcdir/$_svnmod-build/LIBTCOD-LICENSE.txt" "$pkgdir/usr/share/licenses/${_rpkgname}/LICENSE"
55 install -D -m644 "$srcdir/$_svnmod-build/LIBTCOD-CREDITS.txt" "$pkgdir/usr/share/licenses/${_rpkgname}/CREDITS"