summaryrefslogtreecommitdiff
path: root/extra/allegro/PKGBUILD
blob: d8c7872d7f4a25e02cebd318989c9f459559e13f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 148670 2012-02-05 11:46:21Z ibiru $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: arjan <arjan@archlinux.org>

pkgname=allegro
pkgver=5.0.5
pkgrel=2
pkgdesc="Portable library mainly aimed at video game and multimedia programming"
arch=('i686' 'x86_64' 'mips64el')
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=('4d879afe7062f7dc9b8913cba2e44bdf')

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"
}