void-packages/srcpkgs/dumb/template
cr6git 939b08a643
dumb: update to 2.0.3.
Closes: #12843 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-04-08 12:55:56 +02:00

44 lines
968 B
Bash

# Template file for 'dumb'
pkgname=dumb
version=2.0.3
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -GNinja"
make_cmd="ninja"
hostmakedepends="ninja"
makedepends="allegro4-devel"
short_desc="IT, XM, S3M and MOD player library"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="BSD"
homepage="http://dumb.sourceforge.net/"
distfiles="https://github.com/kode54/dumb/archive/${version}.tar.gz"
checksum=99bfac926aeb8d476562303312d9f47fd05b43803050cd889b44da34a9b2a4f9
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*)
configure_args+=" -DUSE_SSE=ON"
;;
*)
configure_args+=" -DUSE_SSE=OFF"
;;
esac
do_install() {
cd build
DESTDIR=${DESTDIR} ${make_cmd} install
}
post_install() {
vdoc README.md
vlicense LICENSE
}
dumb-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.so"
vmove usr/include
vmove usr/lib/pkgconfig
}
}