# $Id: PKGBUILD 141200 2011-10-25 22:29:00Z eric $ # Maintainer: Ionut Biru # Contributor: Tom Newsom # Contributor: arjan pkgname=allegro pkgver=5.0.4 pkgrel=2 pkgdesc="Portable library mainly aimed at video game and multimedia programming" arch=('i686' 'x86_64') url="http://alleg.sourceforge.net/" license=('custom') depends=('jack' 'libxpm' 'libxxf86vm' 'libxxf86dga' 'libxcursor' 'libpng' 'libgl' 'libjpeg') makedepends=('cmake' 'mesa' 'freetype2') source=(http://downloads.sourceforge.net/alleg/${pkgname}-${pkgver}.tar.gz) md5sums=('e2e314ee7116c7efddd0497d6c885e46') build() { cd "${srcdir}" mkdir build && cd build cmake "../${pkgname}-${pkgver}" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DWANT_DOCS=OFF make } package() { cd "${srcdir}"/build make DESTDIR="${pkgdir}" install install -D -m644 ../${pkgname}-${pkgver}/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }