diff options
author | root <root@rshg054.dnsready.net> | 2013-10-09 03:23:29 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-10-09 03:23:29 -0700 |
commit | 737832e1bd70820f477143512b5c89a30a6e81d0 (patch) | |
tree | 665a7ce2bee287680b34294d30d2a2602da059ea /pcr | |
parent | 3a0ad5dc35d5cff379cdfc736b9cae856416fe6a (diff) |
Wed Oct 9 03:18:48 PDT 2013
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/libubox/PKGBUILD | 32 | ||||
-rw-r--r-- | pcr/ubus/PKGBUILD | 32 | ||||
-rw-r--r-- | pcr/uci/PKGBUILD | 34 |
3 files changed, 76 insertions, 22 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: 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 <fauno@kiwwwi.com.ar> +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: diff --git a/pcr/uci/PKGBUILD b/pcr/uci/PKGBUILD index 41541fa07..80194f162 100644 --- a/pcr/uci/PKGBUILD +++ b/pcr/uci/PKGBUILD @@ -1,41 +1,31 @@ # Maintainer: Nicolás Reynolds <fauno@kiwwwi.com.ar> pkgname=uci -pkgver=0.8.0 +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=(http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.gz - uci-0.8.0-lua5.1.patch) -md5sums=('135bf6c4188b72c7fd7954f592b1e4e4' - '2c8f4d59b2b7adb990dcaa07e0ed484c') +source=(git://nbd.name/uci.git) +md5sums=(SKIP) -# source PKGBUILD; mksource -mksource() { - - if [ -d uci/.git ]; then - pushd uci; git pull; popd - else - git clone git://nbd.name/uci.git - fi - - cd uci/ - git archive --prefix=${pkgname}-${pkgver}/ v${pkgver} | \ - gzip -9 > ../${pkgname}-${pkgver}.tar.gz - cd .. +pkgver() { + cd ${srcdir}/${pkgname} + local ver="$(git describe --long --tags)" + printf "%s" "${ver//-/.}" } build() { - cd ${srcdir}/${pkgname}-${pkgver} - patch -Np1 -i ${srcdir}/uci-0.8.0-lua5.1.patch - cmake . + cd ${srcdir}/${pkgname} + + cmake -DCMAKE_INSTALL_PREFIX=/usr . make } package() { - cd ${srcdir}/${pkgname}-${pkgver} + cd ${srcdir}/${pkgname} make DESTDIR=${pkgdir}/ install } |