void-packages/srcpkgs/alpine/template
2020-06-20 16:13:57 +02:00

36 lines
1.2 KiB
Bash

# Template file for 'alpine'
pkgname=alpine
version=2.23
revision=1
_githash=729b8c0f554d95388e228d9b07d628530f8fa736
_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="https://repo.or.cz/alpine.git"
distfiles="https://repo.or.cz/alpine.git/snapshot/${_githash}.tar.gz"
checksum=321d41a8bc3f57f989f8d36b86e11bf0c7112fa1066ea63a2896e63a437ad556
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
}