void-packages/srcpkgs/xvidcore/template

34 lines
869 B
Text
Raw Normal View History

# 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"
}
}