summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0741887d41c9e864a8dc1ee7ec09923b1424f172 (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
# Maintainer: Joar Heimonen <joarheimonen@live.no>
# Note: This is only an install script for Yuma123, not the actual project itself.

pkgname=yuma123-git
pkgver=latest
pkgrel=1
pkgdesc="Open-source YANG API in C and CLI (yangcli) and server (netconfd)"
arch=('x86_64')
url="https://github.com/vlvassilev/yuma123"
license=('BSD')
depends=('git' 'autoconf' 'automake' 'make' 'gcc')
makedepends=('libtool') # Add libtool as a build dependency
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
pkgbase=yuma123-git

source=("git+https://github.com/vlvassilev/yuma123")

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

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

package() {
  cd "$srcdir/yuma123"
  make DESTDIR="${pkgdir}" install
  mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin"
}


sha256sums=('SKIP')