summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c54f8ca083cc34ee9c4c43e453b8c3edb41f8b9 (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
# Maintainer: Joar Heimonen <joar@lightside-instruments.com>

pkgname=yuma123-git
pkgver=latest
pkgrel=1
pkgdesc="Open-source YANG API in C, yangcli and netconfd server"
arch=('any')
url="https://github.com/vlvassilev/yuma123"
license=('BSD')
depends=()
makedepends=('git' 'autoconf' 'automake' 'make' 'gcc')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")

source=("git+https://github.com/vlvassilev/yuma123#commit=4ede28d5ca03c7474b30e57f04da18bb7f6f3f48")

prepare() {
  cd "$srcdir/yuma123"
  autoreconf -i -f
}

build() {
  cd "$srcdir/yuma123"
  ./configure CFLAGS='-O2' CXXFLAGS='-O2' --prefix=/usr
  make
}

package() {
  cd "$srcdir/yuma123"
  make DESTDIR="${pkgdir}" install
  mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin"
  mv "${pkgdir}/usr/bin/sbin/netconfd" "${pkgdir}/usr/bin/netconfd"
  mv "${pkgdir}/usr/bin/sbin/netconf-subsystem" "${pkgdir}/usr/bin/netconf-subsystem"
  rm -rf "${pkgdir}/usr/sbin"
}

sha256sums=('aeb37e1e19251238de0a4e3f7bfed0adc90e15f92abf1fd6956ea22f2ffee462')