blob: 9c26ba270e1b2c93960640e0892d61f4ecdbd084 (
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
|
# $Id: PKGBUILD 70813 2012-05-16 21:38:44Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Aurélien Wailly <aurelien.wailly@gmail.com>
pkgname=netcf
pkgver=0.1.9
pkgrel=2
pkgdesc="A library for configuring network interfaces"
arch=('i686' 'x86_64')
license=('LGPL')
url="https://fedorahosted.org/netcf/"
depends=('augeas>=0.7.4' 'netcfg' 'libxslt' 'libxml2' 'libnl')
makedepends=('gcc')
options=(!libtool)
source=("https://fedorahosted.org/released/netcf/$pkgname-$pkgver.tar.gz"
"netcf-libnl3.patch::https://bugs.archlinux.org/task/29908?getfile=8775")
md5sums=('4d62010a79d56c12438969da9035b63c'
'a509be4b819f669fac21e1eaa621e3e0')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i ${srcdir}/netcf-libnl3.patch
aclocal
automake --add-missing || true
autoreconf
# CFLAGS="`pkg-config --cflags libnl-3.0` -DRTNL_LINK_NOT_FOUND=-1"
CFLAGS="-DNETCF_TRANSACTION=\"true\"" ./configure --prefix=/usr \
--disable-static \
--with-init-script=none
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR=${pkgdir} install
}
|