blob: c11f7c78c5b2149ea33d1d91128452a45000bfba (
plain)
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
47
48
49
50
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=fts
pkgver=0
pkgrel=0
pkgdesc="keith bostic's POSIX file tree stream operations library"
url="http://bostic.com/"
arch="all"
license="BSD"
depends=
depends_dev=
makedepends="$depends_dev wget"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="saveas-https://sites.google.com/a/bostic.com/keithbostic/files/fts.tar.gz?attredirects=0/fts.tar.gz
fts-uclibc.patch"
_builddir="${srcdir}/${pkgname}"
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"
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
}
md5sums="120c14715485ec6ced14f494d059d20a fts.tar.gz
ba391410e4d9b80a374e5974c7ad859f fts-uclibc.patch"
|