blob: 0107ba3cb78394bf9db50e70f03e5484e19bef12 (
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
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
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"
|