summaryrefslogtreecommitdiff
path: root/extra/allegro4/PKGBUILD
blob: 4d5cd1da91be9a1e5c72400a89834e07be9e559c (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
37
38
39
# $Id: PKGBUILD 197590 2013-10-27 03:29:02Z eric $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: arjan <arjan@archlinux.org>

pkgname=allegro4
pkgver=4.4.2
pkgrel=2.1
pkgdesc="Portable library mainly aimed at video game and multimedia programming (legacy version)"
arch=('i686' 'x86_64' 'mips64el')
url="http://alleg.sourceforge.net/"
license=('custom')
depends=('sh' 'jack' 'libxpm' 'libxxf86vm' 'libxxf86dga' 'libxcursor' 'glu')
makedepends=('cmake' 'libpng' 'mesa')
options=('staticlibs')
source=(http://downloads.sourceforge.net/alleg/allegro-${pkgver}.tar.gz
        LICENSE)
md5sums=('4db71b0460fc99926ae91d223199c2e6'
         'cd97e2992e8e66b9e6a449d832dc9c7a')

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

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

  make
}

package() {
  cd "${srcdir}"/build

  make DESTDIR="${pkgdir}" install

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