diff options
author | Carsten Teibes | 2013-11-11 06:02:18 +0100 |
---|---|---|
committer | Carsten Teibes | 2013-11-11 06:02:18 +0100 |
commit | 800f3af827929a8b25d21c9f8cc9018b3f1dcdd4 (patch) | |
tree | 112c67565a4a7586234ac0cabc060e6df4323389 | |
download | aur-800f3af827929a8b25d21c9f8cc9018b3f1dcdd4.tar.gz |
[add] lib32-allegro 5.0.10
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | PKGBUILD | 52 |
2 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..eb5ae7355930 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = lib32-allegro + pkgdesc = Portable library mainly aimed at video game and multimedia programming (32 bit) + pkgver = 5.0.10 + pkgrel = 2 + url = http://alleg.sourceforge.net/ + arch = x86_64 + license = custom + makedepends = cmake + makedepends = gcc-multilib + makedepends = lib32-mesa + makedepends = lib32-glu + depends = lib32-jack + depends = lib32-libxpm + depends = lib32-libxxf86dga + depends = lib32-libgl + depends = lib32-physfs + depends = lib32-gtk2 + depends = lib32-libpulse + depends = lib32-alsa-lib + depends = allegro=5.0.10 + source = http://downloads.sourceforge.net/alleg/allegro-5.0.10.tar.gz + md5sums = bf51a90e158ff8b1cec0514ef70195cf + sha256sums = 71b81080f34f6e485edd0c51f22923c18ff967d5db438e591e6f3885d5bdcda1 + +pkgname = lib32-allegro + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f1f2bab9a168 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: carstene1ns <arch carsten-teibes de> +# Contributor: josephgbr <rafael.f.f1@gmail.com> + +_pkgbase=allegro +pkgname=lib32-${_pkgbase} +pkgver=5.0.10 +pkgrel=2 +pkgdesc='Portable library mainly aimed at video game and multimedia programming (32 bit)' +arch=('x86_64') +url='http://alleg.sourceforge.net/' +license=('custom') +depends=('lib32-jack' 'lib32-libxpm' 'lib32-libxxf86dga' 'lib32-libgl' + 'lib32-physfs' 'lib32-gtk2' 'lib32-libpulse' 'lib32-alsa-lib' + "$_pkgbase=$pkgver") +makedepends=('cmake' 'gcc-multilib' 'lib32-mesa' 'lib32-glu') +source=("http://downloads.sourceforge.net/alleg/$_pkgbase-$pkgver.tar.gz") +md5sums=('bf51a90e158ff8b1cec0514ef70195cf') +sha256sums=('71b81080f34f6e485edd0c51f22923c18ff967d5db438e591e6f3885d5bdcda1') + +build() { + cd "$srcdir" + + rm -rf build + mkdir build + cd build + + cmake "../$_pkgbase-$pkgver" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_LIBRARY_PATH=/usr/lib32 \ + -DWANT_DOCS=OFF \ + -DWANT_PHYSFS=ON \ + -DLIB_SUFFIX="32" \ + -DCMAKE_C_FLAGS="$CFLAGS -m32" \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS -m32" \ + -DWANT_OPENAL=OFF + + make +} + +package() { + cd "$srcdir" + + make -C build DESTDIR="$pkgdir" install + + # remove header files + rm -rf "$pkgdir/usr/include" + + # link to license + install -d "$pkgdir/usr/share/licenses" + ln -s $_pkgbase "$pkgdir/usr/share/licenses/$pkgname" +} |