aboutsummaryrefslogtreecommitdiffstats
path: root/main/libverto
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-04-30 14:28:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-04-30 14:32:50 +0000
commitb383289d2ba7fe0e234b156e6c0c48f7fc0120cb (patch)
treebace9b2e735f4290d119b39367103ecfcbbe8c04 /main/libverto
parentacac7b882252c47d4f43cd2dac8c810c043eb54d (diff)
downloadaports-b383289d2ba7fe0e234b156e6c0c48f7fc0120cb.tar.bz2
aports-b383289d2ba7fe0e234b156e6c0c48f7fc0120cb.tar.xz
main/libverto: moved from testing
Diffstat (limited to 'main/libverto')
-rw-r--r--main/libverto/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/main/libverto/APKBUILD b/main/libverto/APKBUILD
new file mode 100644
index 0000000000..64dc5dfd85
--- /dev/null
+++ b/main/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"