summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a9c24a31b6226fd97170f51f537e3e580a4c7128 (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
# 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"
  libtoolize
  #Move ltmain.sh from ../.. to .
  if [ -d ../.. ] && [ -n "$(find ../.. -maxdepth 1 -name '*.sh' -print -quit)" ]; then
      mv ../../*.sh .
  fi
  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')