From 97991fe0aededc07fcf29dc41b184261b7599c44 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Sat, 3 Mar 2012 12:11:08 -0300 Subject: social/uci-0.8.0-1 --- social/uci/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 social/uci/PKGBUILD (limited to 'social') diff --git a/social/uci/PKGBUILD b/social/uci/PKGBUILD new file mode 100644 index 000000000..51c3ba0e0 --- /dev/null +++ b/social/uci/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Nicolás Reynolds +pkgname=uci +pkgver=0.8.0 +pkgrel=1 +pkgdesc="OpenWRT's Unified Configuration Interface" +arch=('i686') +url="https://openwrt.org" +license=('GPL2') +makedepends=('git' 'cmake' 'lua') +source=(http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.gz) +md5sums=('135bf6c4188b72c7fd7954f592b1e4e4') + +# 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 .. +} + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + cmake . + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir}/ install +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf