summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 269148ea4c9cf5636539d74d554ad942a488ee07 (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
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Aurélien Wailly <aurelien.wailly@gmail.com>

pkgname=netcf
pkgver=0.2.8
pkgrel=10
pkgdesc="A library for configuring network interfaces"
arch=('x86_64')
license=('LGPL-2.1-or-later')
url="https://pagure.io/netcf"
depends=('augeas>=0.7.4' 'libxslt' 'libxml2' 'libnl')
makedepends=('gcc')
source=("https://releases.pagure.org/netcf/$pkgname-$pkgver.tar.gz") #{,.sig})
sha256sums=('fd81d607795547807150dfdb82bd164ab2569369ab48a30cb6b0d010d17b127c')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  aclocal
  automake --add-missing || true
  autoreconf
  ./configure --prefix=/usr \
	--disable-static \
	--with-init-script=none \
	--with-driver=redhat \
	--libexecdir=/usr/lib/$pkgname
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="$pkgdir" install
  rm -rf "$pkgdir"/etc/rc.d
}