blob: 73091366fb613c2786752c2133acbaef33b0fb2c (
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
41
42
43
44
45
46
47
48
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=uci
pkgver=0_git20150919
pkgrel=0
pkgdesc="Library and utility for the Unified Configuration Interface for OpenWrt"
url="http://nbd.name/gitweb.cgi?p=uci.git"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="$depends_dev cmake libubox-dev"
subpackages="$pkgname-dev"
install=
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
"
giturl="git://nbd.name/uci.git"
disturl="dev.alpinelinux.org:/archive/$pkgname"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch)
msg "Applying $i"
patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
}
build() {
cd "$_builddir"
cmake CMakeLists.txt -DBUILD_LUA=OFF -DCMAKE_INSTALL_PREFIX=/usr || return 1
make || return 1
}
package() {
cd "$_builddir"
class="western"
make DESTDIR="$pkgdir" install
}
md5sums="d50257b0adedc8fb82a3b90f43830adc uci-0_git20150919.tar.gz"
sha256sums="5d91c0c80e9bc14b85cdc2f622e2c0c8e1c2ba20a1e7d496cd49536b135c0479 uci-0_git20150919.tar.gz"
sha512sums="8c2d9fe4492be3231049ab8899ac232b663f31c73a5c857f92d77eccdf3a3bd83967b611cc59b1f507449e030487eb3511214229aa257f426afc72463ed211f7 uci-0_git20150919.tar.gz"
|