aboutsummaryrefslogtreecommitdiffstats
path: root/main/libetpan/APKBUILD
blob: 9c0277d8b85dfafb6314a5ddd342183de46f88c9 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libetpan
pkgver=1.2
pkgrel=0
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 autoconf automake libtool"
depends=
depends_dev="cyrus-sasl-dev db-dev"
source="libetpan-$pkgver.tar.gz::https://github.com/dinhviethoa/libetpan/archive/$pkgver.tar.gz
	gnutls-fix-1.patch
	gnutls-fix-2.patch
	"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	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
	./autogen.sh || return 1
}

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

	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="c15905ebc2ec620afb8bcca7b9d9c232  libetpan-1.2.tar.gz
ecffad61f4f45a56fb9e957c26eeed1b  gnutls-fix-1.patch
3df35b893ab0b85ae8918847fe9ff5f0  gnutls-fix-2.patch"
sha256sums="8a4a56474b5eada66475179bdb88734ddf658a5e3661c89043f4abdd571d6600  libetpan-1.2.tar.gz
9870859e9cdb5cb4a5500f2d93c87797307b65d6cfc33a9619c9c4e61311912e  gnutls-fix-1.patch
0a8be906a75427e1bac9ea7a69102069d0f65c069bec2882ad31db8cdcedaff2  gnutls-fix-2.patch"
sha512sums="d50050823c11d32a31adc00201a160268a09f138d54f0ac20c62f0d86d9cf1a96cc6ba50d6212fdc56181a681056ac2a52a8d9544588cdf39d07ab73c80e8b65  libetpan-1.2.tar.gz
70baaa0b8f1d0bb4b126cbde36630fea1b7e5041d61877d85c87a81c8efbb5da378d3e447c47bbeba26ec093285c751c67b33242a6c1d5f8d6779ea0fcf658af  gnutls-fix-1.patch
61db1bd97e49aa817c919c226e9d6c1b08e370e46e422d47e87c3cf79448f5b3a5c7c6078d3df1c2c9ad9301c988748bc43e369b14546be72425d0d0357bcda1  gnutls-fix-2.patch"