aboutsummaryrefslogtreecommitdiffstats
path: root/main/pidgin-otr/APKBUILD
blob: 4dea2b1cae02d185b2b667e6069b7180ab71ce1a (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pidgin-otr
pkgver=4.0.1
pkgrel=0
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
}

md5sums="26aae6c9de423a653812edfe983037e5  pidgin-otr-4.0.1.tar.gz"
sha256sums="1b781f48c27bcc9de3136c0674810df23f7d6b44c727dbf4dfb24067909bf30a  pidgin-otr-4.0.1.tar.gz"
sha512sums="359cde727a92964eadb4d795cf6442634c6b35471c68eeadd6b70d9da0ece7440b03a593d7b509d1ca99f50a06777c1e11557af3a55c1660d38cccf9dccbc259  pidgin-otr-4.0.1.tar.gz"