void-packages/srcpkgs/alpine/template

37 lines
1.1 KiB
Bash

# Template file for 'alpine'
pkgname=alpine
version=2.22
revision=1
_githash=99948a254e2c2352547b962cbd1c23738e7af6b3
_gitshort="${_githash:0:7}"
wrksrc="${pkgname}-${_gitshort}"
build_style=gnu-configure
configure_args="--without-passfile --without-tcl --disable-shared
--with-ssl-dir=${XBPS_CROSS_BASE}/usr
--with-system-pinerc=/etc/${pkgname}.d/pine.conf
--with-system-fixed-pinerc=/etc/${pkgname}.d/pine.conf.fixed"
hostmakedepends="hunspell"
makedepends="gettext-devel libldap-devel mit-krb5-devel ncurses-devel"
short_desc="Apache-licensed PINE mail user agent (with Chappa patches)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Apache-2.0"
homepage="http://repo.or.cz/alpine.git"
distfiles="http://repo.or.cz/alpine.git/snapshot/${_githash}.tar.gz"
checksum=58fd9115174af1105a5b10aa4af527ad3be0ad99a06ea5830881bc78e00cd4fa
post_extract() {
sed -i -e '/run test program/s/^/: /' \
-e 's/linux-gnu/linux-/g' ${wrksrc}/configure
touch /etc/shadow # bleh
}
do_build() {
make -C pith help_c_gen help_h_gen \
CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" CPPFLAGS= LDFLAGS="$BUILD_LDFLAGS"
make ${makejobs} all CC="$CC"
}
post_install() {
vlicense NOTICE
}