diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-23 18:09:03 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-23 18:09:03 -0500 |
commit | d5fa1c1e7c17359f9bb197530dbb6c9b77f2b5d2 (patch) | |
tree | b8ac6535d3d7d698f22a4e25ba689ef38910c72a /user/fts/APKBUILD | |
parent | 7b0151a2f8580fab3fd177a018590486596e175e (diff) | |
download | packages-d5fa1c1e7c17359f9bb197530dbb6c9b77f2b5d2.tar.gz packages-d5fa1c1e7c17359f9bb197530dbb6c9b77f2b5d2.tar.bz2 packages-d5fa1c1e7c17359f9bb197530dbb6c9b77f2b5d2.tar.xz packages-d5fa1c1e7c17359f9bb197530dbb6c9b77f2b5d2.zip |
user/fts: pull in, fix up
Diffstat (limited to 'user/fts/APKBUILD')
-rw-r--r-- | user/fts/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/user/fts/APKBUILD b/user/fts/APKBUILD new file mode 100644 index 000000000..0e7d81cf1 --- /dev/null +++ b/user/fts/APKBUILD @@ -0,0 +1,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="$pkgname-$pkgver.zip::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 fts-1.2.7.zip" |