summaryrefslogtreecommitdiff
path: root/extra/libotr3/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libotr3/PKGBUILD')
-rw-r--r--extra/libotr3/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/extra/libotr3/PKGBUILD b/extra/libotr3/PKGBUILD
new file mode 100644
index 000000000..698c25615
--- /dev/null
+++ b/extra/libotr3/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 170574 2012-11-09 00:22:47Z eric $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+# Contributor: Bug <Bug2000@gmail.com>
+
+pkgname=libotr3
+pkgver=3.2.1
+pkgrel=1
+pkgdesc='Off-the-Record Messaging Library and Toolkit (version 3.X)'
+url='http://www.cypherpunks.ca/otr/'
+license=('GPL' 'LGPL')
+arch=('i686' 'x86_64')
+depends=('libgcrypt')
+options=('!libtool')
+source=("http://www.cypherpunks.ca/otr/libotr-${pkgver}.tar.gz" "libotr3-soname.patch")
+sha1sums=('898bf00d019f49ca34cd0116dd2e22685c67c394'
+ '08c85f20fa1a0c5e8935d9a3f00b1d4e37f1b2d1')
+
+build() {
+ cd "${srcdir}/libotr-${pkgver}"
+ patch -p1 -i "${srcdir}/libotr3-soname.patch"
+ ./configure --prefix=/usr --mandir=/usr/share/man --disable-static \
+ --program-transform-name='s/otr/otr3/'
+ make
+}
+
+package() {
+ cd "${srcdir}/libotr-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ for i in parse sesskeys mackey readforge modify remac; do
+ rm "${pkgdir}"/usr/share/man/man1/otr_$i.1
+ ln -sf otr3_toolkit.1 "${pkgdir}"/usr/share/man/man1/otr3_$i.1
+ done
+}