# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=musl-obstack
pkgver=1.2.3
pkgrel=0
pkgdesc="Standalone library to implement obstack functionality"
url=" "
arch="all"
license="GPL-2.0+"
depends=""
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev"
source="musl-obstack-$pkgver.tar.gz::https://github.com/void-linux/musl-obstack/archive/v$pkgver.tar.gz"

build() {
	export CFLAGS="$CFLAGS -fPIC"
	./bootstrap.sh
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="b2bbed19c4ab2714ca794bdcb1a84fad1af964e884d4f3bbe91c9937ca089d92b8472cb05ebe998a9f5c85cb922b9b458db91eff29077bd099942e1ce18e16cc  musl-obstack-1.2.3.tar.gz"