aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uci/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-09-21 07:44:08 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-09-21 07:49:10 +0000
commit83dda9de1e8c4b1d3be8daa5f287bc62b3ca0948 (patch)
tree3ba92b253fd411a7bc90f7581a5807d3601cddc5 /testing/uci/APKBUILD
parent058697eef032a7236175c9d61e1744489f7419e6 (diff)
downloadaports-83dda9de1e8c4b1d3be8daa5f287bc62b3ca0948.tar.bz2
aports-83dda9de1e8c4b1d3be8daa5f287bc62b3ca0948.tar.xz
testing/uci: new aport
Library and utility for the Unified Configuration Interface for OpenWrt
Diffstat (limited to 'testing/uci/APKBUILD')
-rw-r--r--testing/uci/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/uci/APKBUILD b/testing/uci/APKBUILD
new file mode 100644
index 0000000000..87917fe8b7
--- /dev/null
+++ b/testing/uci/APKBUILD
@@ -0,0 +1,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://distfiles.alpinelinux.org/distfiles/$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"