aboutsummaryrefslogtreecommitdiffstats
path: root/main/libverto/APKBUILD
blob: 64dc5dfd85dece847a966d29caf306a901864178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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"