summaryrefslogtreecommitdiff
path: root/pcr/libotr3/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-06 11:14:50 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-06 11:14:50 -0500
commit1108cf8c0eba1ae386c306b6f1a9871d72f50fe9 (patch)
tree07d7c8fb556cefcc8e88a0ef895f3ef7c00bbb8d /pcr/libotr3/PKGBUILD
parent663a6f38445f7ebd9dbd5aff2ab4d5f066e85d2d (diff)
downloadabslibre-1108cf8c0eba1ae386c306b6f1a9871d72f50fe9.tar.gz
abslibre-1108cf8c0eba1ae386c306b6f1a9871d72f50fe9.tar.bz2
abslibre-1108cf8c0eba1ae386c306b6f1a9871d72f50fe9.zip
libotr3-3.2.1-2: add new package to [pcr]
Diffstat (limited to 'pcr/libotr3/PKGBUILD')
-rw-r--r--pcr/libotr3/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/pcr/libotr3/PKGBUILD b/pcr/libotr3/PKGBUILD
new file mode 100644
index 000000000..99519bff4
--- /dev/null
+++ b/pcr/libotr3/PKGBUILD
@@ -0,0 +1,34 @@
+# Contributor (Arch): Gaetan Bisson <bisson@archlinux.org>
+# Contributor (Arch): Pierre Schmitz <pierre@archlinux.de>
+# Contributor (Arch): Bug <Bug2000@gmail.com>
+# Maintainer : Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname=libotr3
+pkgver=3.2.1
+pkgrel=2
+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')
+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 \
+ --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
+}