void-packages/srcpkgs/libotr3/template
2014-06-16 13:36:41 +02:00

45 lines
1.2 KiB
Text

# Template build file for 'libotr3'.
pkgname=libotr3
version=3.2.1
revision=4
wrksrc="libotr-${version}"
build_style=gnu-configure
configure_args="--program-transform-name='s/otr/otr3/'"
makedepends="libgcrypt-devel"
short_desc="Off-the-Record Messaging Library and Toolkit (version 3.X)"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.cypherpunks.ca/otr/"
license="GPL-2, LGPL-2.1"
distfiles="http://www.cypherpunks.ca/otr/libotr-${version}.tar.gz"
checksum=d428eaa584984baa09450cca07742e0ac8fc62401f3a1c556e3025023369cdf4
pre_build() {
sed '/INCLUDES/s,-I$(includedir),,' -i toolkit/Makefile
}
post_install() {
for i in parse sesskeys mackey readforge modify remac; do
rm ${DESTDIR}/usr/share/man/man1/otr_${i}.1
ln -sf otr3_toolkit.1 ${DESTDIR}/usr/share/man/man1/otr3_${i}.1
done
}
libotr3-progs_package() {
short_desc+=" - applications"
pkg_install() {
vmove usr/bin
vmove usr/share/man/man1
}
}
libotr3-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
}
}