# Template file for 'musl-obstack'
pkgname=musl-obstack
version=1.0
revision=3
build_style=gnu-configure
hostmakedepends="automake libtool"
configure_args="--disable-shared"
only_for_archs="aarch64-musl armv6l-musl armv7l-musl i686-musl mips-musl mipsel-musl mipselhf-musl x86_64-musl"
short_desc="Implementation of obstack for musl libc"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="http://github.com/pullmoll/musl-obstack"
distfiles="https://github.com/pullmoll/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=6071fa2462c13b2bc6d71d10be115cf8e8c9048802a39e27f5ab6340ade59076

CFLAGS="-fPIC"
pre_configure() {
	./bootstrap.sh
}

post_install() {
	vinstall ${pkgname}.pc 644 usr/lib/pkgconfig
}
