void-packages/srcpkgs/mtree/template
2019-06-14 10:04:33 +02:00

35 lines
930 B
Bash

# Template file for 'mtree'
pkgname=mtree
version=1.0.4
revision=5
wrksrc="${pkgname}-port-${version}"
build_style=gnu-configure
hostmakedepends="automake"
makedepends="libressl-devel"
short_desc="Utility for creating and verifying file hierarchies"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="https://github.com/archiecobbs/mtree-port/"
distfiles="https://github.com/archiecobbs/mtree-port/archive/${version}.tar.gz"
checksum=3d1b4e67414ebc178c869434d6bc4c5dd6e32e20db76e799ac16f9f7e585af93
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" musl-fts-devel"
;;
esac
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i '$amtree_CPPFLAGS=-D_STAT_VER_LINUX' Makefile.am
sed -i '$amtree_LDADD=-lfts' Makefile.am
sed -i 's/strtoq/strtoll/g' spec.c
;;
esac
./autogen.sh
}
post_install() {
rm -rf ${DESTDIR}/usr/share/doc/packages/mtree
vlicense COPYING LICENSE
}