void-packages/srcpkgs/SFML/template

34 lines
1.0 KiB
Bash

# Template file for 'SFML'
pkgname=SFML
version=2.6.1
revision=1
build_style=cmake
configure_args="-DSFML_BUILD_EXAMPLES=0 -DSFML_BUILD_DOC=1 -DSFML_INSTALL_PKGCONFIG_FILES=1"
hostmakedepends="doxygen"
makedepends="libsndfile-devel libXrandr-devel libjpeg-turbo-devel
libopenal-devel glew-devel freetype-devel MesaLib-devel glu-devel
xcb-util-image-devel libXcursor libXcursor-devel"
short_desc="Simple and Fast Multimedia Library"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="Zlib"
homepage="http://www.sfml-dev.org/"
distfiles="https://github.com/SFML/SFML/archive/${version}.tar.gz"
checksum=82535db9e57105d4f3a8aedabd138631defaedc593cab589c924b7d7a11ffb9d
post_install() {
rm -f ${DESTDIR}/usr/sfml-*.pc
}
SFML-devel_package() {
depends="SFML>=${version}_${revision} libopenal-devel libsndfile-devel
freetype-devel libXcursor-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/doc/SFML
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}