void-packages/srcpkgs/alpine/template
2021-09-22 13:04:12 +02:00

37 lines
1.2 KiB
Bash

# Template file for 'alpine'
pkgname=alpine
version=2.25
revision=1
_githash=465e23b898e5a3393b9ae52fc7620002541b2e75
_gitshort="${_githash:0:7}"
wrksrc="${pkgname}-${_gitshort}"
build_style=gnu-configure
configure_args="--with-passfile=.pine-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=ba0856bcc863b70dd0c2f06cdeda720332c2d136d49154d78450932cd9e0900a
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
}