aboutsummaryrefslogtreecommitdiffstats
path: root/main/libetpan/APKBUILD
blob: fc7b6de3f0a12a8d58108a90f62d4712438f2519 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libetpan
pkgver=1.1
pkgrel=1
pkgdesc="a portable middleware for email access"
url="http://www.etpan.org/"
arch="all"
license="custom:etpan"
subpackages="$pkgname-dev $pkgname-doc"
makedepends="db-dev cyrus-sasl-dev curl-dev expat-dev gnutls-dev libgcrypt-dev
	libgpg-error-dev"
depends=
depends_dev="cyrus-sasl-dev db-dev"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"

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

build ()
{
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--with-gnutls=yes \
		--with-openssl=no \
		--with-gnutls \
		--disable-static

	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/license.txt
}
md5sums="6fee60d08506e941642b8fa087e60b07  libetpan-1.1.tar.gz"