# Template build file for 'libotr3'. pkgname=libotr3 version=3.2.1 revision=1 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 " homepage="http://www.cypherpunks.ca/otr/" license="GPL-2, LGPL-2.1" distfiles="http://www.cypherpunks.ca/otr/libotr-${version}.tar.gz" checksum=d428eaa584984baa09450cca07742e0ac8fc62401f3a1c556e3025023369cdf4 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() { 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 } } libotr3_package() { pkg_install() { vmove usr } }