diff options
author | Guillaume Delacourt | 2015-06-11 21:35:33 +0200 |
---|---|---|
committer | Guillaume Delacourt | 2015-06-11 21:35:33 +0200 |
commit | 5be7bd30fe6a48d721e9d0a66fe293442ab3b28f (patch) | |
tree | 154891a368281ca8fcb69a24929eebd2c30797bc | |
download | aur-5be7bd30fe6a48d721e9d0a66fe293442ab3b28f.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rw-r--r-- | makefile-linux64.patch | 20 |
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d35304235c43 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = libtcod + pkgdesc = Roguelike graphics/utility library + pkgver = 1.5.1 + pkgrel = 5 + url = http://roguecentral.org/doryen/libtcod/ + arch = i686 + arch = x86_64 + license = BSD + depends = libpng + depends = sdl + depends = glu + options = !makeflags + source = http://roguecentral.org/doryen/?file_id=26 + source = makefile-linux64.patch + md5sums = 3efe844f03fa4d6fdff98aa4cc85ef3d + md5sums = af563a240f9a101c105d3abb25a1f19e + +pkgname = libtcod + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1785a0986401 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Contributor: Feufochmar <feufochmar dot gd at gmail dot com> +# Contributor: Joao Cordeiro <jlcordeiro at gmail dot com> +# Contributor: SirClueless + +pkgname=libtcod +pkgver=1.5.1 +pkgrel=5 +pkgdesc="Roguelike graphics/utility library" +arch=('i686' 'x86_64') +url="http://roguecentral.org/doryen/libtcod/" +license=('BSD') +depends=('libpng' 'sdl' 'glu') +options=(!makeflags) +source=(http://roguecentral.org/doryen/?file_id=26 + makefile-linux64.patch) +md5sums=('3efe844f03fa4d6fdff98aa4cc85ef3d' + 'af563a240f9a101c105d3abb25a1f19e') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + if test "$CARCH" == x86_64; then + patch -p0 < $srcdir/makefile-linux64.patch + make -f makefiles/makefile-linux64 clean release TEMP=$srcdir/tmp + else + make -f makefiles/makefile-linux clean release TEMP=$srcdir/tmp + fi +} + +package() { + mkdir -p $pkgdir/usr/lib + mkdir -p $pkgdir/usr/include/$pkgname + + cd "$srcdir/$pkgname-$pkgver" + + install -D -m 644 libtcod{,gui,xx}.so $pkgdir/usr/lib/ + install -D -m 644 include/*.h* $pkgdir/usr/include/$pkgname/ +} + +# vim:set ts=2 sw=2 et: diff --git a/makefile-linux64.patch b/makefile-linux64.patch new file mode 100644 index 000000000000..b7499117f32b --- /dev/null +++ b/makefile-linux64.patch @@ -0,0 +1,20 @@ +--- makefiles/makefile-linux64 2012-08-29 22:14:00.000000000 +0200 ++++ ../../libtcod-1.5.1/makefiles/makefile-linux64 2012-08-31 19:55:09.169307256 +0200 +@@ -191,7 +191,7 @@ + libtcodxx.a : $(LIBOBJS_CPP_DEBUG) + ar r $@ $(LIBOBJS_CPP_DEBUG) + +-libtcod.so : $(TEMP)/libtcod/release $(LIBOBJS_C_RELEASE) ++libtcod.so : $(TEMP)/libtcod/release/png $(LIBOBJS_C_RELEASE) + gcc -shared -Wl,-soname,$@ -o $@ $(LIBOBJS_C_RELEASE) $(ZLIB_LIBS) $(SDL_LIBS) $(CFLAGS) $(OPENGL_LIB) + + libtcodxx.so : $(TEMP)/libtcod/release/png $(LIBOBJS_CPP_RELEASE) +@@ -203,7 +203,7 @@ + libtcod_debug.so : $(TEMP)/libtcod/debug/png $(LIBOBJS_C_DEBUG) + gcc -shared -Wl,-soname,$@ -o $@ $(LIBOBJS_C_DEBUG) $(ZLIB_LIBS) $(SDL_LIBS) $(CFLAGS) $(OPENGL_LIB) + +-libtcodxx_debug.so : $(TEMP)/libtcod/debug $(LIBOBJS_CPP_DEBUG) ++libtcodxx_debug.so : $(TEMP)/libtcod/debug/png $(LIBOBJS_CPP_DEBUG) + gcc -shared -Wl,-soname,$@ -o $@ $(LIBOBJS_CPP_DEBUG) -L. -ltcod_debug $(CFLAGS) + + libtcodgui_debug.so : $(TEMP)/libtcod/debug/gui $(GUIOBJS_DEBUG) |