# Maintainer: Natanael Copa pkgname=alpine pkgver=2.00_p84 _ver=${pkgver%_p*} _pver=${pkgver##*_p} pkgrel=2 pkgdesc="Text-based email client, friendly for novices but powerful" url="http://www.washington.edu/alpine/" arch="all" license="APACHE" depends="" makedepends="openldap-dev heimdal-dev ncurses-dev openssl-dev automake autoconf libtool" subpackages="$pkgname-doc" source="ftp://ftp.cac.washington.edu/alpine/alpine.tar.bz2 all_p84.patch CVE-2008-5514.patch libcrypt-underlinking.patch libcrypto-underlinking.patch " _builddir="$srcdir"/$pkgname-$_ver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done libtoolize --force && aclocal -I m4 && autoconf && automake || return 1 } build() { cd "$_builddir" ./configure --prefix=/usr \ --without-passfile \ --without-tcl \ --disable-shared \ --with-system-pinerc=/etc/alpine.d/pine.conf \ --with-system-fixed-pinerc=/etc/alpine.d/pine.conf.fixed make } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="84e44cbf71ed674800a5d57eed9c1c52 alpine.tar.bz2 785cea92b11d6655c183f3379468a643 all_p84.patch 1b52a54a656979116c09fb1d948a4325 CVE-2008-5514.patch c0afe83884124c8945db376e91863a83 libcrypt-underlinking.patch 1db0d3aad97a0e11c6910234a802264c libcrypto-underlinking.patch"