aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ubus/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-09-21 07:38:51 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-09-21 07:49:10 +0000
commit932c8fbf4e09c89ae26ec0e5237bc18fcba69a16 (patch)
treeb4f961138e4e9ebc3aa2418fb5c51cf2ce10a668 /testing/ubus/APKBUILD
parent958a01e503ff988fa7ba7f34967bd01b5a292d25 (diff)
downloadaports-932c8fbf4e09c89ae26ec0e5237bc18fcba69a16.tar.bz2
aports-932c8fbf4e09c89ae26ec0e5237bc18fcba69a16.tar.xz
testing/ubus: new aport
OpenWrt micro bus architecture
Diffstat (limited to 'testing/ubus/APKBUILD')
-rw-r--r--testing/ubus/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/ubus/APKBUILD b/testing/ubus/APKBUILD
new file mode 100644
index 0000000000..43566f0944
--- /dev/null
+++ b/testing/ubus/APKBUILD
@@ -0,0 +1,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://distfiles.alpinelinux.org/distfiles/$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"