desktop/allegro4/PKGBUILD
2018-01-31 00:22:54 +01:00

37 lines
1001 B
Bash

# Forked from https://git.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/allegro4
pkgname=allegro4
pkgver=4.4.2
pkgrel=2
pkgdesc="Portable library mainly aimed at video game and multimedia programming (legacy version)"
arch=('x86_64')
url="http://alleg.sourceforge.net/"
license=('custom')
depends=('sh' 'jack' 'libxpm' 'libxxf86vm' 'libxxf86dga' 'libxcursor')
makedepends=('cmake' 'libpng' 'mesa' 'glu')
options=('staticlibs')
source=("https://github.com/liballeg/allegro5/releases/download/$pkgver/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"
}