void-packages/srcpkgs/xvidcore/template
2014-01-05 10:32:13 +01:00

33 lines
869 B
Text

# Template file for 'xvidcore'
pkgname=xvidcore
version=1.3.2
revision=2
wrksrc="$pkgname"
build_wrksrc="build/generic"
build_style=gnu-configure
hostmakedepends="nasm"
short_desc="ISO MPEG-4 compliant video codec"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.xvid.org"
license="GPL-2"
distfiles="http://downloads.xvid.org/downloads/$pkgname-$version.tar.bz2"
checksum=d6c11334e1e771f9e4722eff454762325fd0989f6a4217abca296d6770160bf4
post_install() {
# Fix dynamic libraries
cd ${DESTDIR}/usr/lib
local mylib=$(basename libxvidcore.so.*)
ln -sf ${mylib} libxvidcore.so.4
ln -sf ${mylib} libxvidcore.so
chmod 755 ${DESTDIR}/usr/lib/libxvidcore.so.*
}
xvidcore-devel_package() {
depends="xvidcore>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}