summaryrefslogtreecommitdiff
path: root/extra/allegro/PKGBUILD
blob: c7083b60f36ca77b7a6c5169098abb3600b00417 (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
# $Id: PKGBUILD 91255 2010-09-25 13:05:55Z ibiru $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: arjan <arjan@archlinux.org>

pkgname=allegro
pkgver=4.4.1.1
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')
makedepends=('cmake')
options=('!makeflags')
source=(http://downloads.sourceforge.net/alleg/${pkgname}-${pkgver}.tar.gz
        LICENSE)
md5sums=('0f1cfff8f2cf88e5c91a667d9fd386ec'
         'cd97e2992e8e66b9e6a449d832dc9c7a')

build() {
  cd "${srcdir}"
  mkdir build && cd build

  cmake "../${pkgname}-${pkgver}" \
  	-DCMAKE_BUILD_TYPE=Release \
  	-DCMAKE_INSTALL_PREFIX=/usr \
	-DWANT_DOCS=OFF

  make
  make DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/"
}