updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / allegro5 / PKGBUILD
blob5b2a0a95003bf359a1060e995734ad6ce6488911
1 # Maintainer: Clayton G. Hobbs <clay@lakeserv.net>
2 pkgname=allegro5
3 pkgver=5.0.4
4 pkgrel=3
5 pkgdesc="The latest version of the Allegro multimedia library"
6 arch=(i686 x86_64)
7 url="http://alleg.sourceforge.net/"
8 license=('custom')
9 depends=('libsndfile' 'libjpeg' 'libxcursor' 'libgl' 'libpng' 'libvorbis' 'mesa')
10 makedepends=('cmake')
11 provides=('allegro5')
12 source=(http://downloads.sourceforge.net/project/alleg/allegro/$pkgver/allegro-$pkgver.tar.gz)
13 md5sums=('e2e314ee7116c7efddd0497d6c885e46')
15 build() {
16   cd "$srcdir/allegro-$pkgver"
17   if [ ! -d build ]; then
18     mkdir build
19   fi
20   cd build
22   cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release ..
24   cmake ..
25   make || return 1
28 package() {
29   cd "$srcdir/allegro-$pkgver/build"
30   if [ ! -f LICENSE.txt ]; then
31     cp ../LICENSE.txt .
32   fi
34   make DESTDIR="$pkgdir/" install
36   install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE