aboutsummaryrefslogtreecommitdiffstats
path: root/main/libetpan
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-03 14:43:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-03 15:05:42 +0000
commite926395dca1b774cde13a6c1c7f8d1eda1a66066 (patch)
tree3e3ebf097a7661628293466158997333889469bb /main/libetpan
parentb069e027213a60da89d62004388bee395a311912 (diff)
downloadaports-e926395dca1b774cde13a6c1c7f8d1eda1a66066.tar.bz2
aports-e926395dca1b774cde13a6c1c7f8d1eda1a66066.tar.xz
main/libetpan: modernize and add check
Diffstat (limited to 'main/libetpan')
-rw-r--r--main/libetpan/APKBUILD35
1 files changed, 17 insertions, 18 deletions
diff --git a/main/libetpan/APKBUILD b/main/libetpan/APKBUILD
index 8db126af39..f75b08ef0a 100644
--- a/main/libetpan/APKBUILD
+++ b/main/libetpan/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libetpan
pkgver=1.8
-pkgrel=1
+pkgrel=2
pkgdesc="a portable middleware for email access"
url="http://www.etpan.org/"
arch="all"
@@ -9,24 +9,19 @@ 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 zlib-dev"
-depends=
depends_dev="cyrus-sasl-dev db-dev"
-source="libetpan-$pkgver.tar.gz::https://github.com/dinhviethoa/libetpan/archive/$pkgver.tar.gz
- "
+source="libetpan-$pkgver.tar.gz::https://github.com/dinhviethoa/libetpan/archive/$pkgver.tar.gz"
+
+builddir="$srcdir/$pkgname-$pkgver"
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
- ./autogen.sh || return 1
+ default_prepare
+ cd "$builddir"
+ ./autogen.sh
}
-build ()
-{
- cd "$srcdir"/$pkgname-$pkgver
+build () {
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -34,15 +29,19 @@ build ()
--with-gnutls=yes \
--with-openssl=no \
--with-gnutls \
- --disable-static \
- || return 1
+ --disable-static
+ make
+}
- make || return 1
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$srcdir"/$pkgname-$pkgver
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/license.txt
}
+
sha512sums="a5e97998803cc56dbd54356153c8579b52a9675fe95fbf642c3158215428d9d2cb30c4e0060c5f4dd760634fff5b1c2a32ce4bb70a5f2bc6398a071ce95e1efd libetpan-1.8.tar.gz"