diff options
Diffstat (limited to 'social/uci/PKGBUILD')
-rw-r--r-- | social/uci/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/social/uci/PKGBUILD b/social/uci/PKGBUILD new file mode 100644 index 000000000..5a14ac2c0 --- /dev/null +++ b/social/uci/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Nicolás Reynolds <fauno@kiwwwi.com.ar> +pkgname=uci +pkgver=0.8.0 +pkgrel=1 +pkgdesc="OpenWRT's Unified Configuration Interface" +arch=('i686' 'mips64el') +url="https://openwrt.org" +license=('GPL2') +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: |