blob: f22a8d6b492a6afe7a50418bced8f620a1888b49 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libtirpc
pkgver=0.2.4
pkgrel=0
pkgdesc="Transport Independent RPC library (SunRPC replacement)"
url="http://libtirpc.sourceforge.net/"
arch="all"
license="GPL2"
depends=
depends_dev="krb5-dev"
makedepends="$depends_dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
nis.h
libtirpc-no-des.patch
musl-compliance.patch
"
prepare() {
cd "$srcdir"/$pkgname-$pkgver
# uclibc does not provide nis.h so provide our own
mkdir src/rpcsvc
cp "$srcdir"/nis.h src/rpcsvc/
for i in $source; do
case $i in
*.patch)
msg "Applying $i"
patch -N -p1 -i "$srcdir"/$i || return 1
;;
esac
done
libtoolize --force && aclocal -I m4 && autoconf \
&& automake --add-missing || return 1
}
build() {
cd "$srcdir"/$pkgname-$pkgver
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-gss \
|| return 1
make || return 1
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="847995e8d002cbf1387bda05947be086 libtirpc-0.2.4.tar.bz2
082dff1bc78bdcbac6d305c1534fe3c0 nis.h
80e8f54aab0f5bed37e58ad79fe4ff2b libtirpc-no-des.patch
26e391e40f06d3d14189ec6ae0598948 musl-compliance.patch"
sha256sums="45c3e21dfc23a5ba501f9dfc6671678316fdfdb8355a1ec404ae2aa2f81943a1 libtirpc-0.2.4.tar.bz2
7149d53da167168cbad9e75cbab302768f659e59e208763b1bf5df2a6ff3bfdb nis.h
5b7c8f6d19f17541902dfd1b1132f2b07e4cc0987152d4e8007243e776d4d47f libtirpc-no-des.patch
8c54cf46095945c25c8bf4968e67e6304bbae82352d3c25a6532af66443e931a musl-compliance.patch"
sha512sums="8b7fec13d34ad0ddfa3832f4a4955607d94f6a691fedcc81a98554345f6c6e64d5f289490a10a80600cebf5b53cfad99c0d78007b88f8f2fbc60cbb8680fc87f libtirpc-0.2.4.tar.bz2
15edac1e30cc1aa65ca495bae14c6c7455d65ca539b7e5c865c3fbd5a51c76966b37dd34e9a6483aadcaea3602aefb0b48cdb46f877dae1c65dfa6840dfd8c54 nis.h
9a984a7741deb943f92cd8a9f23d1a0e09a01e91aa88268456ccbb7998b24f50ad431e26400def3a8ba9d6cd345e5abccf5acf9c59708ce8f0653275c2ea5d61 libtirpc-no-des.patch
5c0414345e863057eb0ff28f97e654e22fc444f4d72c392de83ab372d0485123c8a42bc558c3688c5b24f3cc83997db5324b2cc57a2676b658761dce45605999 musl-compliance.patch"
|