aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fts/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fts/APKBUILD')
-rw-r--r--testing/fts/APKBUILD65
1 files changed, 23 insertions, 42 deletions
diff --git a/testing/fts/APKBUILD b/testing/fts/APKBUILD
index c13248234b..8677a6b071 100644
--- a/testing/fts/APKBUILD
+++ b/testing/fts/APKBUILD
@@ -1,28 +1,24 @@
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=fts
-pkgver=0
-pkgrel=4
-pkgdesc="keith bostic's POSIX file tree stream operations library"
-url="http://bostic.com/"
+pkgver=1.1
+pkgrel=5
+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 bsd-compat-headers"
+depends_dev="autoconf automake"
+makedepends="$depends_dev"
install=""
-subpackages="$pkgname-dev $pkgname-doc"
-replaces_doc="man-pages"
-source="saveas-https://sites.google.com/a/bostic.com/keithbostic/files/fts.tar.gz?attredirects=0/fts.tar.gz
- fts-uclibc.patch
- fts-header-correctness.patch
- stdint.patch"
+subpackages="$pkgname-dev"
+source="https://github.com/pullmoll/musl-fts/archive/v1.1.zip
+ 00-static-and-shared-libs.patch"
-_builddir="${srcdir}/${pkgname}"
+_builddir="${srcdir}/musl-${pkgname}-${pkgver}"
prepare() {
local i
cd "$_builddir"
- chmod +w *.c
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
@@ -32,39 +28,24 @@ prepare() {
build() {
cd "$_builddir"
- gcc -I. -fPIC -shared -o libfts.so -Wl,-soname,libfts.so.${pkgver} fts.c
+ ./bootstrap.sh
+ ./configure --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr || return 1
+ make || return 1
}
package() {
cd "$_builddir"
-
- install -d "$pkgdir"/usr/lib
-
- install -m 755 libfts.so "$pkgdir"/usr/lib/libfts.so.${pkgver}
- ln -sf libfts.so.${pkgver} "$pkgdir"/usr/lib/libfts.so
-
- install -d "$pkgdir"/usr/include
- install -m 644 fts.h "$pkgdir"/usr/include/fts.h
-
- install -d "$pkgdir"/usr/share/man/man3
- install -m 644 fts.3 "$pkgdir"/usr/share/man/man3/fts.3
+ make DESTDIR=${pkgdir} install || return 1
mkdir -p "$pkgdir"/usr/lib/pkgconfig
- cat >"$pkgdir"/usr/lib/pkgconfig/libfts.pc <<__EOF__
-prefix=/usr
-exec_prefix=\${prefix}
-libdir=\${exec_prefix}/lib
-includedir=\${exec_prefix}/include
-
-Name: libfts
-Description: $pkgdesc
-Version: $pkgver
-Libs: -lfts
-Cflags:
-__EOF__
+ cp "$_builddir"/musl-fts.pc "$pkgdir"/usr/lib/pkgconfig/libfts.pc
}
-md5sums="120c14715485ec6ced14f494d059d20a fts.tar.gz
-588fead4044bf535ff97298651aaab8f fts-uclibc.patch
-b197744ece4ef9a5fa52692acf9b6666 fts-header-correctness.patch
-a8a5a8e81e1c67738aef00f3f13a718b stdint.patch"
+md5sums="9ee52bbf56df87d3cf5349407d26ab01 v1.1.zip
+db14405fba57173dc1f72bae322bcddb 00-static-and-shared-libs.patch"
+sha256sums="17154766ca2c1e2e7ca55039a4a10a0334427fe986cd52b8c936667e80350954 v1.1.zip
+aea0dde6690df477b4575362c9101981835abbf2bf04cf1a02911917efc23695 00-static-and-shared-libs.patch"
+sha512sums="e2e03589d31a0494c1652fa411260646497c623598569443fd18718f63013c871bebef1765ebe6129895f5fd6008c0bf6d2a0d843ac2645eb6d9615056f6ba7e v1.1.zip
+dc455af94a97524024ae714ae57ca123a6732e3d9872a56d1cf282107cba09e30efd976b9c448c0c520407b1e43c71e36deec3e0655dcf3076d293ac7af8a9ac 00-static-and-shared-libs.patch"