summaryrefslogtreecommitdiff
path: root/social/uci/PKGBUILD
blob: d306b77bd31fcc1c97f4a6e9575de6468f049ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Nicolás Reynolds <fauno@kiwwwi.com.ar>
pkgname=uci
pkgver=0.8.0
pkgrel=1
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')

# 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: