desktop/allegro/PKGBUILD

33 lines
974 B
Bash
Raw Normal View History

pkgname=allegro
2018-01-31 07:22:54 +08:00
pkgver=5.2.3
2012-11-18 18:07:28 +08:00
pkgrel=1
pkgdesc="Portable library mainly aimed at video game and multimedia programming."
2018-01-31 07:22:54 +08:00
arch=('x86_64')
url="http://alleg.sourceforge.net/"
license=('ZLIB')
2015-07-07 21:05:09 +08:00
depends=('alsa-lib' 'flac' 'freetype2' 'glibc' 'glu' 'jack' 'libgl' 'libjpeg' 'libogg' 'libpng' 'libvorbis' 'libx11' 'libxau' 'libxcb' 'libxcursor' 'libxdmcp' 'libxext' 'libxfixes' 'libxpm' 'libxrender' 'libxxf86vm' 'libxxf86dga' 'libxcursor' 'libpng' 'openal'
'physfs' 'zlib')
2012-05-01 06:57:17 +08:00
makedepends=('cmake')
2018-01-31 07:22:54 +08:00
source=("git+https://github.com/liballeg/${pkgname}${pkgver%%.*}#tag=$pkgver.0")
md5sums=('SKIP')
build() {
cd "${srcdir}"
mkdir -p build && cd build
2018-01-31 07:22:54 +08:00
cmake "${srcdir}/${pkgname}${pkgver%%.*}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
2018-01-31 07:22:54 +08:00
install -Dm644 "${srcdir}/${pkgname}${pkgver%%.*}/LICENSE.txt" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}