blob: 475e97bb642c82a372be55e85e9552108adbd15a (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libtirpc
pkgver=0.3.0
pkgrel=1
pkgdesc="Transport Independent RPC library (SunRPC replacement)"
url="http://libtirpc.sourceforge.net/"
arch="all"
license="GPL2"
depends=
depends_dev="krb5-dev bsd-compat-headers"
makedepends="$depends_dev autoconf automake libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
nis.h
"
prepare() {
cd "$srcdir"/$pkgname-$pkgver
# uclibc/musl 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
}
build() {
cd "$srcdir"/$pkgname-$pkgver
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconf=/etc \
--disable-authdes \
|| return 1
make || return 1
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="34b07c50e6e3fc1ca18182e9f0fd5a67 libtirpc-0.3.0.tar.bz2
821394d42c2a666d9b69452b4cc444b5 nis.h"
sha256sums="cafe59d561145b384bffd34d6614e9fe4c1d9157c30d2b6b022a0ef71de5a11d libtirpc-0.3.0.tar.bz2
82657302b530628afd5866b76fc338956ca011d11e995cf6dea5d8b0493278eb nis.h"
sha512sums="2b6769ba0bc353b9a116b22f7d544c87a4379dba287a10c9acd2a3b9cbe3ece7efee7ad489d298476278a3189230de97a97922762fe716f81880b103c4111c55 libtirpc-0.3.0.tar.bz2
83be3277aa7539d454273d7579827ff09e6b927e21de0af8a9290733b4bdfdcebfef26c9faffffd005a7631eae8beb4db9f60787f08db92fdd140686fe160c47 nis.h"
|