blob: 5d95b6e99b1b838989accc91ad9a87886fb587eb (
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
|
# Maintainer: Vincent Grande <shoober420@gmail.com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
pkgname=lib32-libnsl-git
pkgver=1.3.0
pkgrel=1
pkgdesc='Public client interface library for NIS(YP) and NIS+'
arch=(x86_64)
url=https://github.com/thkukuk/libnsl
license=(LGPL2.1)
depends=(
lib32-libtirpc
libnsl
)
makedepends=(git)
provides=(lib32-libnsl)
conflicts=(lib32-libnsl)
source=(git+https://github.com/thkukuk/libnsl.git)
sha256sums=(SKIP)
_commit() {
# Convert HEAD into a shortened commit id:
git rev-parse --short HEAD
}
pkgver() {
cd libnsl
# Suggestions for improvement welcome!
printf '%s.r%s.%s' \
"$(_commit)"
}
prepare() {
cd libnsl
}
build() {
cd libnsl
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkg-config'
./autogen.sh
./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--disable-static
make
}
package() {
make DESTDIR="${pkgdir}" -C libnsl install
rm -rf "${pkgdir}"/usr/include
}
# vim: ts=2 sw=2 et:
|