aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ubus/APKBUILD
blob: 58624854dd8c9ee0beb34882bb10b40b485a177f (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
49
50
51
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=ubus
pkgver=0_git20150919
pkgrel=0
pkgdesc="OpenWrt micro bus architecture"
url="http://nbd.name/gitweb.cgi?p=luci2/ubus.git"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="$depends_dev cmake json-c-dev libubox libubox-dev"
subpackages="$pkgname-dev"
install=
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
	disable-systemd.patch
	"
giturl="git://nbd.name/luci2/ubus.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"
	make DESTDIR="$pkgdir" install
}

md5sums="8697350a75ba8f6b4c9d27ec1a0a30f3  ubus-0_git20150919.tar.gz
335d57ca38e7cd6ec69433a13c0381fa  disable-systemd.patch"
sha256sums="b7a89410a5bb6e219e65027e641c043dab8d1a0f658d5c7da5f9704b59106924  ubus-0_git20150919.tar.gz
1232e614b2f3e26687e380c952901833e1bf3e179ba78f14a7bdebb3856a2cec  disable-systemd.patch"
sha512sums="903483208ae5d303e9436f3aa315ad2603ca4c835832470e78a6e0502e889dab02af7d34f624fd9659d1e9679fc0a8724d1223aa7e8d0a9864c109d0de09a496  ubus-0_git20150919.tar.gz
bef2a9892290b8b37a3b1db414a8031e43823a023660648f06effe3d3ed0258e1f6f7433e59bc46436237bec2cf0a0e7af6d6105d76c1f289a1496bb39f55480  disable-systemd.patch"