diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-14 12:44:48 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-09 11:51:45 +0000 |
commit | 3df8c9e27f07ebc8690faf36883d4529c283810c (patch) | |
tree | 972d83f70542a057b7d36630ae5375c3491e1d66 /main/imap/APKBUILD | |
parent | c67d03cea077fc1ebd7079b8c0215ae1ef6acf37 (diff) | |
download | aports-3df8c9e27f07ebc8690faf36883d4529c283810c.tar.bz2 aports-3df8c9e27f07ebc8690faf36883d4529c283810c.tar.xz |
main/imap: modernize abuild
Diffstat (limited to 'main/imap/APKBUILD')
-rw-r--r-- | main/imap/APKBUILD | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/main/imap/APKBUILD b/main/imap/APKBUILD index dd6c2c143e..578c09bb31 100644 --- a/main/imap/APKBUILD +++ b/main/imap/APKBUILD @@ -11,38 +11,33 @@ url="http://www.washington.edu/imap" arch="all" license="ASL 2.0" subpackages="$pkgname-dev c-client:cclient" -depends= +depends="" makedepends="libressl-dev" source="http://gd.tuwien.ac.at/infosys/mail/imap/imap-$pkgver.tar.gz fix-linking.patch c-client-2006k_KOLAB_Annotations.patch " +builddir="$srcdir"/$pkgname-$pkgver prepare() { - cd $srcdir/$pkgname-$pkgver - for i in ../*.patch; do - msg "Applying $i" - patch -p1 -i $i || return 1 - done + default_prepare sed -e "s:-g -fno-omit-frame-pointer -O6:\${CFLAGS}:" \ -e "s:SSLDIR=/usr/local/ssl:SSLDIR=/usr:" \ -e "s:SSLCERTS=\$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:" \ -e "s:^CC=.*:CC=${CC:-cc}:" \ - -i src/osdep/unix/Makefile || return 1 + -i src/osdep/unix/Makefile } build() { - cd $srcdir/$pkgname-$pkgver - + cd $builddir export GCCCFLAGS="$CFLAGS" yes "y" | make slx SPECIALAUTHENTICATORS=ssl SSLTYPE=unix \ EXTRACFLAGS="$CFLAGS -fPIC" \ - EXTRALDFLAGS="$LDFLAGS" \ - || return 1 + EXTRALDFLAGS="$LDFLAGS" } package() { - cd $srcdir/$pkgname-$pkgver + cd $builddir mkdir -p $pkgdir/usr/sbin install -D -m755 imapd/imapd $pkgdir/usr/sbin/imapd install -D -m755 ipopd/ipop2d $pkgdir/usr/sbin/ipop2d @@ -55,8 +50,7 @@ package() { install -m644 c-client/linkage.c "$pkgdir"/usr/include/imap/linkage.c install -Dm755 c-client/libc-client.so.1.0.0 \ - "$pkgdir"/usr/lib/libc-client.so.1.0.0 \ - || return 1 + "$pkgdir"/usr/lib/libc-client.so.1.0.0 ln -s libc-client.so.1.0.0 "$pkgdir"/usr/lib/libc-client.so.1 ln -s libc-client.so.1.0.0 "$pkgdir"/usr/lib/libc-client.so } @@ -64,15 +58,9 @@ package() { cclient() { pkgdesc="UW IMAP c-client library" mkdir -p "$subpkgdir"/usr - mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ || return 1 + mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ } -md5sums="2126fd125ea26b73b20f01fcd5940369 imap-2007f.tar.gz -affade6de21bfd66c72e50c61fed511e fix-linking.patch -c50f734aa18019ecebfc8737ca27cc22 c-client-2006k_KOLAB_Annotations.patch" -sha256sums="53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28 imap-2007f.tar.gz -8ee94cf79ba424e94c39cd6a68e74745431051e0e830843a51067db523e37833 fix-linking.patch -cd8833d4eabd8fbad6a1588e3ee5375fced007964f1c6bcd016b34bee5d8eaf2 c-client-2006k_KOLAB_Annotations.patch" sha512sums="7c3e1d9927872001e768ff2ddbcf3af74078243efe58dd70e01d966856b7611134e4b579818691a954bade9acaeeda6f2f30f40d812b8aa20990de5cb90d5d35 imap-2007f.tar.gz f8a4b5b8759b690273ec8c86db55c3c3ebf7b358321aa829341bc65e98db0f10696b1eeae922eecada668f011b0b3231ed73c3a959b47b4cba00568bf7d231c1 fix-linking.patch 871093236b3ae300968e1e200a2389566af72ed1f62ad57c1dc617dd59e8378f29175fe07e5cfc575e022f3c27769b06850cbf21567f7cc359ca204c4d87a3af c-client-2006k_KOLAB_Annotations.patch" |