blob: dcf4c1438359357bfeef147236a2c8ec08e6e6b0 (
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
|
# Maintainer: Petar Koretic <petar.koretic@qaap.io>
pkgname=libnetconf-git
_pkgname=libnetconf
pkgver=r2232.159e155f
pkgrel=1
pkgdesc='a NETCONF library in C intended for building NETCONF clients and servers.'
url="https://github.com/CESNET/$_pkgname"
arch=('i686' 'x86_64')
license=('BSD')
depends=('curl' 'libssh' 'libxslt')
makedepends=('git' 'doxygen')
provides=($_pkgname)
conflicts=($_pkgname)
options=('!emptydirs')
source=("$pkgname::git+https://github.com/CESNET/$_pkgname")
md5sums=('SKIP')
pkgver() {
cd $pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd $pkgname
sed -i -e '/mode=finish/d;/LDCONFIG/d' Makefile.in
}
build() {
cd $pkgname
autoreconf --install --force
./configure --prefix=/usr
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
[[ -d "$pkgdir/var/lib/$_pkgname" ]] && chmod 0755 "$pkgdir/var/lib/$_pkgname"
rm -fr "$pkgdir/usr/share/$_pkgname/doxygen"
}
|