aboutsummaryrefslogtreecommitdiffstats
path: root/main/fts/APKBUILD
blob: 8f804974da699f740ab26d256b023ef0c2f15d3c (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
36
37
38
39
40
41
42
43
44
45
46
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=fts
pkgver=1.2.7
pkgrel=1
pkgdesc="Provides the fts(3) functions, which are missing in musl libc"
url="https://github.com/pullmoll/musl-fts/"
arch="all"
license="BSD-3-Clause"
makedepends="automake autoconf libtool"
subpackages="$pkgname-dev"
source="https://github.com/pullmoll/musl-fts/archive/v$pkgver.zip"

builddir="$srcdir/musl-$pkgname-$pkgver"
prepare() {
	default_prepare
	cd "$builddir"
	./bootstrap.sh
}

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

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	mkdir -p "$pkgdir"/usr/lib/pkgconfig
	cp "$builddir"/musl-fts.pc "$pkgdir"/usr/lib/pkgconfig/libfts.pc
}

sha512sums="69aceaa7a8dc7ab5845d3288e315357f92ac32fac55c3d670186f2c5756f665a11471fc81f67126755a707058a8d293ba926d906f542c1360a49ca3c9b357976  v1.2.7.zip"