summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95f0758c79195cbcbd666924168e036018f0bc9a (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 <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' 'libtool' 'make' 'gcc')
makedepends=()
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
pkgbase=yuma123-git

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

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

build() {
  cd "$srcdir/yuma123"
  libtoolize
  ./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')