mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 23:47:21 +08:00
33 lines
712 B
Bash
33 lines
712 B
Bash
pkgname=netcf
|
|
pkgver=0.2.8
|
|
pkgrel=2
|
|
pkgdesc="A library for configuring network interfaces"
|
|
arch=('x86_64')
|
|
license=('LGPL')
|
|
url="https://fedorahosted.org/netcf/"
|
|
depends=('augeas' 'libxslt' 'libxml2' 'libnl')
|
|
makedepends=('gcc')
|
|
source=("https://fedorahosted.org/released/netcf/$pkgname-$pkgver.tar.gz")
|
|
md5sums=('8edfc9a5856468ae4f8ee97415a3dbf3')
|
|
|
|
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
|
|
}
|
|
|