mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-10 19:22:10 +01:00
71 lines
1.7 KiB
Plaintext
71 lines
1.7 KiB
Plaintext
# 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/"
|
|
arch="all"
|
|
license="BSD"
|
|
depends=
|
|
depends_dev=
|
|
makedepends="$depends_dev bsd-compat-headers"
|
|
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"
|
|
|
|
_builddir="${srcdir}/${pkgname}"
|
|
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;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
gcc -I. -fPIC -shared -o libfts.so -Wl,-soname,libfts.so.${pkgver} fts.c
|
|
}
|
|
|
|
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
|
|
|
|
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__
|
|
}
|
|
|
|
md5sums="120c14715485ec6ced14f494d059d20a fts.tar.gz
|
|
588fead4044bf535ff97298651aaab8f fts-uclibc.patch
|
|
b197744ece4ef9a5fa52692acf9b6666 fts-header-correctness.patch
|
|
a8a5a8e81e1c67738aef00f3f13a718b stdint.patch"
|