# Maintainer: Natanael Copa pkgname=alpine pkgver=2.20 _ver=${pkgver%_p*} _pver=${pkgver##*_p} pkgrel=1 pkgdesc="Text-based email client, friendly for novices but powerful" url="http://www.washington.edu/alpine/" arch="all" license="ASL 2.0" depends="" makedepends="openldap-dev heimdal-dev ncurses-dev openssl-dev automake autoconf libtool" subpackages="$pkgname-doc" source="http://patches.freeiz.com/alpine/patches/alpine-$pkgver/alpine-$pkgver.tar.xz uclibc-musl.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 --force --add-missing || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-passfile=.pine-pass \ --without-tcl \ --disable-shared \ --with-system-pinerc=/etc/alpine.d/pine.conf \ --with-system-fixed-pinerc=/etc/alpine.d/pine.conf.fixed \ || return 1 make } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="024e81703038d3e5a443a6bc2c5b51da alpine-2.20.tar.xz f9d8a0f9d6722ba15c473a7925a64285 uclibc-musl.patch" sha256sums="989dbfec4bc2682fff14b4cbd2923ec1f1fd27c41a93e49f1ea7db8d795dc4e5 alpine-2.20.tar.xz 96b3f504fbb91cfe5e3f7eb970ae618069eee54a0007e905d7aa4f6d514c9df8 uclibc-musl.patch" sha512sums="a6fc505577eb48d6dff7684c5fa5aca867ef83cbee401e0199f39cf808666d67d13ce819dff785cf3e0a0e97590b4e54366214fc60d67727ae9ba2a054fec108 alpine-2.20.tar.xz 1b14352571dd12749bbb6ebc1fd468dbb5a8e4d7a27e87f5baeb00a60d5c1a016d925c6bc776da7e1dbf0ad8d799a65049b64774113274d7ffb07c7b1b196775 uclibc-musl.patch"