summaryrefslogtreecommitdiff
path: root/pcr/libubox/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-10-08 19:14:09 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-10-08 19:14:09 -0200
commiteb36bc4f38d6864bf5765b31ac46df7568985bdd (patch)
tree678e329d492c8a67a45f84215f562dea2f7a3acc /pcr/libubox/PKGBUILD
parent70c10e2335091040600f9808f8f23efa5610492b (diff)
parent029a2e63ff5210df1e98ab38990cf46cb71425ca (diff)
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/libubox/PKGBUILD')
-rw-r--r--pcr/libubox/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/pcr/libubox/PKGBUILD b/pcr/libubox/PKGBUILD
new file mode 100644
index 000000000..577eecd24
--- /dev/null
+++ b/pcr/libubox/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Nicolás Reynolds <fauno@kiwwwi.com.ar>
+pkgname=libubox
+pkgver=0.8.0
+pkgrel=2
+pkgdesc="OpenWRT's Basic Utility Library"
+arch=('i686' 'mips64el')
+url="https://openwrt.org"
+license=('BSD')
+depends=('json-c')
+makedepends=('git' 'cmake' 'lua51')
+source=(git://nbd.name/luci2/libubox.git)
+md5sums=(SKIP)
+
+pkgver() {
+ cd ${srcdir}/${pkgname}
+ local ver="$(git describe --long --tags)"
+ printf "%s" "${ver//-/.}"
+}
+
+build() {
+ cd ${srcdir}/${pkgname}
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}
+ make DESTDIR=${pkgdir}/ install
+}
+
+# vim:set ts=2 sw=2 et: