blob: ad95ee51084dc5778bbde932a3116d970d0caaba (
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
51
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=fts
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 automake autoconf libtool"
install=""
subpackages="$pkgname-dev"
source="https://github.com/pullmoll/musl-fts/archive/v1.1.zip
00-static-and-shared-libs.patch"
_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="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"
|