From 029a2e63ff5210df1e98ab38990cf46cb71425ca Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Tue, 8 Oct 2013 14:43:55 -0300 Subject: ubus --- pcr/ubus/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pcr/ubus/PKGBUILD (limited to 'pcr/ubus') diff --git a/pcr/ubus/PKGBUILD b/pcr/ubus/PKGBUILD new file mode 100644 index 000000000..80e14eaf0 --- /dev/null +++ b/pcr/ubus/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Nicolás Reynolds +pkgname=ubus +pkgver=0.8.0 +pkgrel=1 +pkgdesc="OpenWRT's RPC client utility" +arch=('i686' 'mips64el') +url="https://openwrt.org" +license=('LGPL2.1') +depends=('libubox' 'json-c') +makedepends=('git' 'cmake' 'lua51') +source=(git://nbd.name/luci2/ubus.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: -- cgit v1.2.3