# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=fts pkgver=1.2.5 pkgrel=0 pkgdesc="Provides the fts(3) functions, which are missing in musl libc" url="https://github.com/pullmoll/musl-fts/" arch="all" license="BSD" depends= depends_dev="" makedepends="$depends_dev automake autoconf libtool" install="" subpackages="$pkgname-dev" source="https://github.com/pullmoll/musl-fts/archive/v$pkgver.zip" builddir="${srcdir}/musl-${pkgname}-${pkgver}" prepare() { local i cd "$builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$builddir" ./bootstrap.sh CFLAGS=-fPIC ./configure --build=$CBUILD \ --host=$CHOST \ --prefix=/usr || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR=${pkgdir} install || return 1 mkdir -p "$pkgdir"/usr/lib/pkgconfig cp "$builddir"/musl-fts.pc "$pkgdir"/usr/lib/pkgconfig/libfts.pc } md5sums="1191fcd74d73f0357a6b9e7579914d5f v1.2.5.zip" sha256sums="72883a1c01a17bc58b506d63b8fde1041a46fc8b8e0dd9505d7c72ad7d381904 v1.2.5.zip" sha512sums="c03ee7c5f26f82e52a49ee74e51f9194a16be7c8e50883bf5f13b7f5716c57c958492c38edbc0fe4afeea57c9b3f5dde1810eaa51c6572d1a4e1579d0a15247e v1.2.5.zip"