void-packages/srcpkgs/libotr3/template

46 lines
1.2 KiB
Text
Raw Normal View History

2013-06-26 09:41:09 +00:00
# Template build file for 'libotr3'.
pkgname=libotr3
version=3.2.1
2014-05-20 08:23:48 +00:00
revision=3
2013-06-26 09:41:09 +00:00
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
2014-05-20 08:23:48 +00:00
pre_build() {
sed '/INCLUDES/s,-I$(includedir),,' -i toolkit/Makefile
}
2013-06-26 09:41:09 +00:00
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}"
2013-06-26 09:41:09 +00:00
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
}
}