void-packages/srcpkgs/musl-fts/template

36 lines
963 B
Bash

# Template file for 'musl-fts'
pkgname=musl-fts
version=1.2.7
revision=3
build_style=gnu-configure
hostmakedepends="automake libtool"
archs="*-musl"
short_desc="Implementation of fts(3) for musl libc"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="BSD"
homepage="https://github.com/void-linux/musl-fts"
distfiles="https://github.com/void-linux/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=49ae567a96dbab22823d045ffebe0d6b14b9b799925e9ca9274d47d26ff482a6
pre_configure() {
sed -i "/pkgconfig_DATA/i pkgconfigdir=\$(libdir)/pkgconfig" Makefile.am
./bootstrap.sh
}
post_install() {
vinstall ${pkgname}.pc 644 usr/lib/pkgconfig
vlicense COPYING
vman fts.3 musl-fts.3
}
musl-fts-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/share/man
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}