aboutsummaryrefslogtreecommitdiffstats
path: root/main/netcf/APKBUILD
blob: e9e139eb85b59fde2a9524a89bc6b78e2afb3a45 (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=netcf
pkgver=0.2.8
pkgrel=2
pkgdesc="Cross-platform network configuration library"
arch="all"
url="https://fedorahosted.org/released/netcf"
license="LGPLv2"
depends=
makedepends="augeas-dev libgcrypt-dev libnl3-dev libxml2-dev libxslt-dev
	linux-headers 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"
	#update_config_sub || return 1
	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
}

libs() {
	pkgdesc="Libraries for $pkgname"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr/
}

md5sums="8edfc9a5856468ae4f8ee97415a3dbf3  netcf-0.2.8.tar.gz"
sha256sums="fd81d607795547807150dfdb82bd164ab2569369ab48a30cb6b0d010d17b127c  netcf-0.2.8.tar.gz"
sha512sums="d9a667a06469b60e8967423d6a738abc65512bf0ad0975164738c6cd5a168bf0300153067a772a61c4088ea969a88de234be0486c354edf73a7b984ddb003328  netcf-0.2.8.tar.gz"