void-packages/srcpkgs/smpeg/template

34 lines
963 B
Bash

# Template file for 'smpeg'
pkgname=smpeg
version=0.4.5
revision=5
build_style=gnu-configure
configure_args="--with-sdl-prefix=${XBPS_CROSS_BASE}/usr --disable-gtk-player --disable-opengl-player"
make_build_args="LDFLAGS+=-lstdc++"
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="ftp://slackware.oregonstate.edu/.1/vectorlinux/VL64-7.0/source/sourceVL/smpeg/${version}/src/smpeg-${version}.tar.gz"
checksum=1839c12e88d5dbbc767a7b94eeab2aa3efe4f0eebb7eb7c7240270ba93689a2b
patch_args=-Np0
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
}
}