blob: 746b16ee5d9a99b5a0bb6ec810d0151c3ea90b43 (
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
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=netcf
pkgver=0.2.3
pkgrel=0
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"
replaces="libnetcf"
_builddir="$srcdir/netcf-$pkgver"
prepare() {
cd "$_builddir"
}
build() {
cd "$_builddir"
./configure --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"
sha256sums="732c9e366e9a6528f0a8e683b8330ac159cc108180dbfe6981341c5e1b07ebb5 netcf-0.2.3.tar.gz"
sha512sums="a51ab4639546d1606d6777d537f83b8d30c2537eafdc0ed699ff8cfbde79b36a68f25b87dacd61074e9fdac9ef80db09dde624d8f6a64ac4213d14f8339bb31d netcf-0.2.3.tar.gz"
|