void-packages/srcpkgs/libsrtp/template

33 lines
1.0 KiB
Bash

# Template build file for 'libsrtp'.
pkgname=libsrtp
version=1.4.4
revision=4
wrksrc=srtp
build_style=gnu-configure
short_desc="Library implementing SRTP, the Secure Real-time Transport Protocol"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="BSD"
homepage="http://sourceforge.net/projects/srtp/"
#Use fedora's cvs checkout for the good
distfiles="http://pkgs.fedoraproject.org/repo/pkgs/libsrtp/srtp-1.4.4-20101004cvs.tar.bz2/160479555f5e95027ad318605c1c670c/srtp-1.4.4-20101004cvs.tar.bz2"
checksum=ac91a00c4eed0c111a94dfa5295a32af82cdd26c1c7f58f317b1062f0beb923b
CFLAGS="-fPIC"
post_install() {
sed "s,@VERSION@,${version},g" ${FILESDIR}/libsrtp.pc > libsrtp.pc
vinstall libsrtp.pc 644 usr/lib/pkgconfig
ln -sf libsrtp.so.0.0.0 ${DESTDIR}/usr/lib/libsrtp.so
ln -sf libsrtp.so.0.0.0 ${DESTDIR}/usr/lib/libsrtp.so.0
}
libsrtp-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}