summaryrefslogtreecommitdiff
path: root/pcr/uci/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-10-15 00:31:49 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-10-15 00:31:49 -0300
commit93db7f2fb23cba78cde4343b506a676e376ca4a8 (patch)
tree3fec56215a344b1e01e49a27198f919ac981320b /pcr/uci/PKGBUILD
parentc162e34d12c6cf76532a7f6b3d538d493a8bf17a (diff)
parent39e9111d76d232d65ca0c43285dea5bd5d58d28e (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/avant-window-navigator/PKGBUILD community/awn-extras-applets/PKGBUILD community/cinnamon-control-center/PKGBUILD community/gnome-menus2/PKGBUILD community/gnome-panel/PKGBUILD community/gpsim/PKGBUILD community/kgraphviewer/PKGBUILD community/kpovmodeler/PKGBUILD community/libdesktop-agnostic/PKGBUILD community/python-basemap/PKGBUILD community/python-mpi4py/PKGBUILD community/python-psutil/PKGBUILD community/qgo/PKGBUILD community/ude/PKGBUILD community/virtkey/PKGBUILD extra/alsaplayer/PKGBUILD extra/aterm/PKGBUILD extra/cups-pdf/PKGBUILD extra/ffmpeg/PKGBUILD extra/gtk2/PKGBUILD extra/kdeplasma-applets-networkmanagement/PKGBUILD extra/libffado/PKGBUILD extra/libtar/PKGBUILD extra/maxima/PKGBUILD extra/php-xcache/PKGBUILD extra/postgresql/PKGBUILD extra/xorg-server/PKGBUILD extra/xorg-xauth/PKGBUILD
Diffstat (limited to 'pcr/uci/PKGBUILD')
-rw-r--r--pcr/uci/PKGBUILD34
1 files changed, 12 insertions, 22 deletions
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
}