diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-10-08 19:14:09 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-10-08 19:14:09 -0200 |
commit | eb36bc4f38d6864bf5765b31ac46df7568985bdd (patch) | |
tree | 678e329d492c8a67a45f84215f562dea2f7a3acc /social | |
parent | 70c10e2335091040600f9808f8f23efa5610492b (diff) | |
parent | 029a2e63ff5210df1e98ab38990cf46cb71425ca (diff) |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'social')
-rw-r--r-- | social/uci/PKGBUILD | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/social/uci/PKGBUILD b/social/uci/PKGBUILD index d306b77bd..5a14ac2c0 100644 --- a/social/uci/PKGBUILD +++ b/social/uci/PKGBUILD @@ -6,34 +6,25 @@ pkgdesc="OpenWRT's Unified Configuration Interface" arch=('i686' 'mips64el') url="https://openwrt.org" license=('GPL2') -makedepends=('git' 'cmake' 'lua') -source=(http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.gz) -md5sums=('135bf6c4188b72c7fd7954f592b1e4e4') +makedepends=('git' 'cmake' 'lua51') +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} + cd ${srcdir}/${pkgname} - cmake . + cmake -DCMAKE_INSTALL_PREFIX=/usr . make } package() { - cd ${srcdir}/${pkgname}-${pkgver} + cd ${srcdir}/${pkgname} make DESTDIR=${pkgdir}/ install } |