void-packages/srcpkgs/smpeg/template

38 lines
991 B
Bash

# Template file for 'smpeg'
pkgname=smpeg
version=0.4.5
revision=6
build_style=gnu-configure
configure_args="--with-sdl-prefix=${XBPS_CROSS_BASE}/usr --disable-gtk-player --disable-opengl-player"
make_build_args="LDFLAGS+=-lstdc++"
hostmakedepends="autoconf automake libtool"
makedepends="SDL-devel"
short_desc="SDL MPEG Player Library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
homepage="https://icculus.org/smpeg/"
distfiles="https://github.com/icculus/smpeg/archive/refs/tags/release_${version//./_}.tar.gz"
checksum=e2e53bfd2e6401e2c29e5eb3929be0e8698bc9e4c9d731751f67e77b408f1f74
pre_configure() {
./autogen.sh
}
post_install() {
# Remove unused stuff
rm -rf ${DESTDIR}/usr/share/man
rm -f ${DESTDIR}/usr/bin/plaympeg
}
smpeg-devel_package() {
depends="SDL-devel smpeg>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share
}
}