summaryrefslogtreecommitdiff
path: root/pcr/uci/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/uci/PKGBUILD')
-rw-r--r--pcr/uci/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/pcr/uci/PKGBUILD b/pcr/uci/PKGBUILD
new file mode 100644
index 000000000..80194f162
--- /dev/null
+++ b/pcr/uci/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Nicolás Reynolds <fauno@kiwwwi.com.ar>
+pkgname=uci
+pkgver=v0.8.0.43.g2fcc6d7
+pkgrel=2
+pkgdesc="OpenWRT's Unified Configuration Interface"
+arch=('i686' 'x86_64' 'mips64el')
+url="https://openwrt.org"
+license=('GPL2')
+depends=('libubox')
+makedepends=('git' 'cmake' 'lua51')
+source=(git://nbd.name/uci.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: