From 5120c9332b9e7afa34007020e3d34006547cbc85 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 15 Feb 2013 14:17:53 +0000 Subject: testing/libverto: new aport Main loop abstraction library https://fedorahosted.org/libverto/ --- testing/libverto/APKBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 testing/libverto/APKBUILD (limited to 'testing') diff --git a/testing/libverto/APKBUILD b/testing/libverto/APKBUILD new file mode 100644 index 0000000000..64dc5dfd85 --- /dev/null +++ b/testing/libverto/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: +# Maintainer: +pkgname=libverto +pkgver=0.2.5 +pkgrel=0 +pkgdesc="Main loop abstraction library" +url="https://fedorahosted.org/libverto/" +arch="all" +license="MIT" +depends="" +depends_dev="" +makedepends="$depends_dev glib-dev libevent-dev libev-dev" +install="" +subpackages="$pkgname-dev $pkgname-libev $pkgname-libevent $pkgname-glib" +source="http://fedorahosted.org/releases/l/i/libverto/libverto-$pkgver.tar.gz" + +_builddir="$srcdir"/libverto-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --with-libev \ + --with-libevent \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +_mv_backend() { + pkgdesc="$1 driver for libverto" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libverto-$1.so.* "$subpkgdir"/usr/lib/ +} + +libev() { _mv_backend libev; } +libevent() { _mv_backend libevent; } +glib() { _mv_backend glib; } + +md5sums="144fb8f00759ef8ad71c472333847f03 libverto-0.2.5.tar.gz" +sha256sums="b249067e91a98a5a44ff958d77c2e5a45de697d08dfd22800aa760d752d7a6ce libverto-0.2.5.tar.gz" +sha512sums="d57a7f86e714d3fbed391984de3356d8a2769f846985769c1be7d881647c1be95a5fc6a82bba1660ef3241aa1a40150b5e005af6f35dc32473facfdea49c556e libverto-0.2.5.tar.gz" -- cgit v1.2.3