void-packages/srcpkgs/musl-obstack/template
2020-10-26 15:10:57 -03:00

34 lines
935 B
Bash

# Template file for 'musl-obstack'
pkgname=musl-obstack
version=1.2.2
revision=1
archs="*-musl"
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Implementation of obstack for musl libc"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2.0-or-later"
homepage="https://github.com/void-linux/musl-obstack"
distfiles="${homepage}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=6eac88961c58a53f31cccd719b97d1b33c65436c51664e760a9582e2659c1314
CFLAGS="-fPIC"
pre_configure() {
sed -i "/pkgconfig_DATA/i pkgconfigdir=\$(libdir)/pkgconfig" Makefile.am
./bootstrap.sh
}
post_install() {
vinstall ${pkgname}.pc 644 usr/lib/pkgconfig
}
musl-obstack-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/libobstack.a
vmove usr/lib/libobstack.so
vmove usr/lib/pkgconfig
}
}