diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-10-08 14:20:17 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-10-08 14:20:17 -0300 |
commit | 633ed5544cf2a17ce585c2a3383518f41c42729a (patch) | |
tree | d40b0d5f83f165fc00a4e1f4fc076562a5d103b8 /pcr/libubox | |
parent | ea4e2aab558fcea86a9aae9a8145c9471eba3863 (diff) | |
download | abslibre-633ed5544cf2a17ce585c2a3383518f41c42729a.tar.gz abslibre-633ed5544cf2a17ce585c2a3383518f41c42729a.tar.bz2 abslibre-633ed5544cf2a17ce585c2a3383518f41c42729a.zip |
libubox is needed by uci
Diffstat (limited to 'pcr/libubox')
-rw-r--r-- | pcr/libubox/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/libubox/PKGBUILD b/pcr/libubox/PKGBUILD new file mode 100644 index 000000000..99f78db78 --- /dev/null +++ b/pcr/libubox/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Nicolás Reynolds <fauno@kiwwwi.com.ar> +pkgname=libubox +pkgver=0.8.0 +pkgrel=1 +pkgdesc="OpenWRT's Basic Utility Library" +arch=('i686' 'mips64el') +url="https://openwrt.org" +license=('BSD') +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: |