diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-05-22 05:54:33 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-05-22 05:54:33 -0300 |
commit | 4774a572775b8c44d86bd8696d17d2205a473ac5 (patch) | |
tree | 4b17743b5e17e171eda55359ed5737da589b6ed9 /pcr/libubox-lua-git/PKGBUILD | |
parent | 3cc4685abd608cb86ac3beca4501a77e00c6d5be (diff) | |
parent | 1a4554480341083f8a1240431c12ebe267843ecd (diff) | |
download | abslibre-4774a572775b8c44d86bd8696d17d2205a473ac5.tar.gz abslibre-4774a572775b8c44d86bd8696d17d2205a473ac5.tar.bz2 abslibre-4774a572775b8c44d86bd8696d17d2205a473ac5.zip |
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/libubox-lua-git/PKGBUILD')
-rw-r--r-- | pcr/libubox-lua-git/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pcr/libubox-lua-git/PKGBUILD b/pcr/libubox-lua-git/PKGBUILD new file mode 100644 index 000000000..e724d66de --- /dev/null +++ b/pcr/libubox-lua-git/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer (Arch): Luka Perkov <luka.perkov@sartura.hr> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> + +pkgname=libubox-lua-git +_gitname=libubox +pkgver=r340.791a361 +# commit 791a361ad1b08fa56e554654109122b828657a2b +pkgrel=1 +pkgdesc='A small utility library developed for OpenWrt containing a event loop, linked lists, blobmsg, stream buffer management, [...]' +url='http://git.openwrt.org/?p=project/libubox.git' +arch=('i686' 'x86_64') +license=('ISC BSD-3c') +depends=('json-c' 'lua51') +makedepends=('git' 'cmake' 'gcc' 'make' 'patch' 'pkg-config') +conflicts=('libubox' 'libubox-git') +provides=('libubox') +source=('git://git.openwrt.org/project/libubox.git' '001-lua-version.patch' '002-json-c-include.patch') +md5sums=('SKIP' 'SKIP' 'SKIP') + +pkgver() { + cd "$srcdir/$_gitname" + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/$_gitname" + + patch -p1 -i "$srcdir/001-lua-version.patch" + patch -p1 -i "$srcdir/002-json-c-include.patch" +} + +build() { + cd "$srcdir/$_gitname" + + cmake CMakeLists.txt \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_LUA=ON + + make +} + +package() { + cd "$srcdir/$_gitname" + + make DESTDIR="$pkgdir" install +} + +# burp -c lib `ls libubox-lua-git*.src.tar.gz | sort | tail -n 1` |