blob: 797a3040c1bab808f8084a3231f8a1d6cdea8277 (
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: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=netcf
pkgver=0.2.3
pkgrel=1
pkgdesc="Cross-platform network configuration library"
arch="all"
url="https://fedorahosted.org/released/netcf"
license="LGPLv2"
depends=
makedepends="augeas-dev libgcrypt-dev libnl-dev libxml2-dev libxslt-dev
pkgconfig readline-dev"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://fedorahosted.org/released/netcf/netcf-$pkgver.tar.gz
memleak.patch"
replaces="libnetcf"
_builddir="$srcdir/netcf-$pkgver"
prepare() {
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 \
--with-driver=debian \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}
libs() {
pkgdesc="Libraries for $pkgname"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr/
}
md5sums="bee292470b06201b59af0fad473a1b65 netcf-0.2.3.tar.gz
d8ba020e1cf8995ca94a46d5b8d3f459 memleak.patch"
sha256sums="732c9e366e9a6528f0a8e683b8330ac159cc108180dbfe6981341c5e1b07ebb5 netcf-0.2.3.tar.gz
f4323cd0de64ba05b7c1fe02f20589a8aee1337b47e5853a6666fa1129dfc580 memleak.patch"
sha512sums="a51ab4639546d1606d6777d537f83b8d30c2537eafdc0ed699ff8cfbde79b36a68f25b87dacd61074e9fdac9ef80db09dde624d8f6a64ac4213d14f8339bb31d netcf-0.2.3.tar.gz
af19d606ff9d1cc93789d044d7d56cfa13a53be7cfc9007da33f53e917a7d6a9674f5d26fea997878aec17363402d5ccf4d8069cbd2a084f66cfc511bf594ea3 memleak.patch"
|