summaryrefslogtreecommitdiff
path: root/system/musl-obstack/APKBUILD
blob: 5a1d6d8c7429a3b02ac6719c96646e05bca71912 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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"