aboutsummaryrefslogtreecommitdiffstats
path: root/main/pidgin-otr/APKBUILD
blob: dca3a1cc985d68e57b56d1b07fae8c23e98a9bff (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
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pidgin-otr
pkgver=4.0.0
pkgrel=1
pkgdesc="Off The Record Messaging, an encryption plugin for pidgin to provide secure IM conversations"
url="http://otr.cypherpunks.ca/"
arch="all"
license="LGPL"
depends="pidgin"
makedepends="libotr-dev gtk+-dev intltool pidgin-dev"
install=
subpackages="$pkgname-lang"
source="http://www.cypherpunks.ca/otr/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
        cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/pidgin/*.la || return 1
}

md5sums="eadb953376acc474e56041d4c12aa2c8  pidgin-otr-4.0.0.tar.gz"
sha256sums="d56b3f092dbe9ee6597641c7d2dd294884dc04ba47aaf4ec571cd54977df4691  pidgin-otr-4.0.0.tar.gz"
sha512sums="5f74da77d0c72576bb4a510b41bc70f041ab2555554b4d37376073f2edee8e1021c153cf5cc3d32bd276bdee643e9e7d881026628240a8757e5f8974c200f3d7  pidgin-otr-4.0.0.tar.gz"