From 5f492d499f0ae08a1d45d1ddacab283370ff7e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Tue, 8 Oct 2013 14:25:54 -0300 Subject: uci upgrade --- pcr/uci/PKGBUILD | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) (limited to 'pcr/uci') diff --git a/pcr/uci/PKGBUILD b/pcr/uci/PKGBUILD index 41541fa07..2f7f13c9a 100644 --- a/pcr/uci/PKGBUILD +++ b/pcr/uci/PKGBUILD @@ -1,41 +1,30 @@ # Maintainer: Nicolás Reynolds pkgname=uci -pkgver=0.8.0 -pkgrel=2 +pkgver=v0.8.0.43.g2fcc6d7 +pkgrel=1 pkgdesc="OpenWRT's Unified Configuration Interface" arch=('i686' 'x86_64' 'mips64el') url="https://openwrt.org" license=('GPL2') 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 } -- cgit v1.2.3-2-g168b