summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorXiao Liang2018-03-29 10:33:01 +0800
committerXiao Liang2018-03-29 10:33:01 +0800
commit1db5cb0122d7e66d9331aa3c3cf8c6e569a1348d (patch)
tree3553e13301069831bc87a502dfe4ea1dd363fac5 /PKGBUILD
downloadaur-1db5cb0122d7e66d9331aa3c3cf8c6e569a1348d.tar.gz
Initial commit
libyang v0.14-r1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f7405e6d15b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+pkgname=libyang
+_pkgver=0.14-r1
+pkgver=${_pkgver/-/}
+pkgrel=1
+pkgdesc='A YANG data modelling language parser and toolkit written (and providing API) in C.'
+url="https://github.com/CESNET/$pkgname"
+arch=('x86_64')
+license=('BSD')
+depends=('pcre')
+makedepends=('cmake')
+conflicts=('libyang-git')
+_pkgsrc=$pkgname-$_pkgver
+source=("$_pkgsrc.tar.gz::https://github.com/CESNET/$pkgname/archive/v$_pkgver.tar.gz")
+md5sums=('e8a75d0eb5dc4a8ab0507f50960c435f')
+
+prepare() {
+ mkdir -p $srcdir/build
+}
+
+build() {
+ cd $srcdir/build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=Release \
+ $srcdir/$_pkgsrc
+ make
+}
+
+package() {
+ cd $srcdir/build
+ make DESTDIR="$pkgdir" install
+ install -Dm644 $srcdir/$_pkgsrc/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}