blob: 8ed9f52e2ac2be3519c47e1070461ba51fed3b89 (
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
|
# Contributor:
# Maintainer:
pkgname=npth
pkgver=0.91
pkgrel=0
pkgdesc="The New GNU Portable Threads library"
url="ftp://ftp.gnupg.org/gcrypt/npth/"
arch="all"
license="LGPLv3+ or GPLv2+ or (LGPLv3+ and GPLv2+)"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="ftp://ftp.gnupg.org/gcrypt/npth/npth-$pkgver.tar.bz2"
_builddir="$srcdir"/npth-$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"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="87712f0cee656c390b49773923e26e7f npth-0.91.tar.bz2"
sha256sums="caef86ced4a331e162897818a5b924860c8d6003e52da5bdf76da00e8e0dfae1 npth-0.91.tar.bz2"
sha512sums="728ae7d5dadb253f0ca77fea455f81eed5fa437c6a85d3846d0bb00efd105a433d046a7b64df51f5de5f5535d983ac95d9f9f217b0c1b8b6321e6640eed71f83 npth-0.91.tar.bz2"
|