summaryrefslogtreecommitdiff
path: root/repo/netcf/netcf.xibuild
blob: aaac1b2ddaf6aa3cf3a4dcdcd2505734ca3b4ff1 (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
#!/bin/sh

NAME="netcf"
DESC="Cross-platform network configuration library"

MAKEDEPS="augeas libgcrypt libnl libxml2 libxslt linux-headers pkg-config readline ifupdown-ng"

PKG_VER=0.2.8
SOURCE="https://releases.pagure.org/netcf/netcf-$PKG_VER.tar.gz"

build() {
	cd "$BUILD_ROOT"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-driver=debian \
		|| return 1
	make || return 1
}

package() {
	cd "$BUILD_ROOT"
	make DESTDIR="$PKG_DEST" install || return 1
}