void-packages/srcpkgs/allegro5/template
2022-03-27 22:51:26 +02:00

33 lines
1.1 KiB
Bash

# Template file for 'allegro5'
pkgname=allegro5
version=5.2.7.0
revision=1
wrksrc="allegro-${version}"
build_style=cmake
configure_args="-DWANT_DOCS=1 -DWANT_PHYSFS=1"
hostmakedepends="pkg-config"
makedepends="zlib-devel alsa-lib-devel jack-devel libXpm-devel libXxf86vm-devel
libXxf86dga-devel libXcursor-devel libvorbis-devel libpng-devel glu-devel
libjpeg-turbo-devel libtheora-devel freetype-devel libflac-devel physfs-devel
libopenal-devel gtk+3-devel opus-devel opusfile-devel"
depends="virtual?libGL"
short_desc="Portable library mainly aimed at video game and multimedia programming"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="Allegro License (MIT alike)"
homepage="https://liballeg.org/"
distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
checksum=c1e3b319d99cb453b39d393572ba2b9f3de42a96de424aee7d4a1abceaaa970c
post_install() {
vlicense LICENSE.txt
}
allegro5-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}