summaryrefslogtreecommitdiff
path: root/extra/libotr3/PKGBUILD
blob: 51d2316c07af29bdf98f4177f44a117a16a728f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 203584 2014-01-13 17:12:15Z andyrtr $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: Bug <Bug2000@gmail.com>

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
}