2010-12-02 20:39:49 +08:00
|
|
|
#
|
2011-08-26 08:10:04 +08:00
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
2010-12-02 20:39:49 +08:00
|
|
|
#
|
2011-08-26 08:10:04 +08:00
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
|
|
|
# Contributor: Giuseppe Calà <jiveaxe@gmail.com>
|
2010-12-02 20:39:49 +08:00
|
|
|
|
|
|
|
pkgname=allegro
|
2012-07-12 04:39:32 +08:00
|
|
|
pkgver=5.0.7
|
2012-10-24 06:37:30 +08:00
|
|
|
pkgrel=2
|
2011-02-07 05:13:05 +08:00
|
|
|
pkgdesc="Portable library mainly aimed at video game and multimedia programming."
|
2010-12-02 20:39:49 +08:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://alleg.sourceforge.net/"
|
2011-02-07 05:13:05 +08:00
|
|
|
license=('ZLIB')
|
2012-05-01 06:57:17 +08:00
|
|
|
depends=('alsa-lib' 'flac' 'freetype2' 'glibc' 'jack' 'libgl' 'libjpeg' 'libogg' 'libpng' 'libvorbis' 'libx11' 'libxau' 'libxcb' 'libxcursor' 'libxdmcp' 'libxext' 'libxfixes' 'libxpm' 'libxrender' 'libxxf86vm' 'libxxf86dga' 'libxcursor' 'libpng' 'openal' 'physfs' 'zlib')
|
|
|
|
makedepends=('cmake')
|
2012-06-18 18:24:30 +08:00
|
|
|
source=("http://downloads.sourceforge.net/alleg/${pkgname}-${pkgver}.tar.gz")
|
2012-07-12 04:39:32 +08:00
|
|
|
md5sums=('e4ed66093edf45497f45411488dd82e6')
|
2010-12-02 20:39:49 +08:00
|
|
|
|
|
|
|
build() {
|
2012-06-18 18:24:30 +08:00
|
|
|
cd "${srcdir}"
|
|
|
|
mkdir -p build && cd build
|
|
|
|
|
|
|
|
cmake "${srcdir}/${pkgname}-${pkgver}" \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2010-12-02 20:39:49 +08:00
|
|
|
|
|
|
|
make
|
2011-02-07 05:13:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-06-18 18:24:30 +08:00
|
|
|
cd "${srcdir}/build"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2010-12-02 20:39:49 +08:00
|
|
|
|
2012-06-18 18:24:30 +08:00
|
|
|
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
install -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE.txt" \
|
|
|
|
"${pkgdir}/usr/share/licenses/${pkgname}"
|
2010-12-02 20:39:49 +08:00
|
|
|
}
|
2012-07-12 04:39:32 +08:00
|
|
|
|