blob: 727219e1c55f876815d7d8a280deaabfaa4d29ad (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libverto
pkgver=0.2.5
pkgrel=2
pkgdesc="Main loop abstraction library"
url="https://github.com/npmccallum/libverto"
arch="all"
license="MIT"
depends=""
makedepends="glib-dev libevent-dev libev-dev automake autoconf libtool"
subpackages="$pkgname-dev $pkgname-libev $pkgname-libevent $pkgname-glib"
source="$pkgname-$pkgver.tar.gz::https://github.com/npmccallum/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/libverto-$pkgver
prepare() {
cd "$builddir"
autoreconf -i
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--with-libev \
--with-libevent \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
}
_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; }
sha512sums="f5c9c8a999fec932022c30836791d77b30cf85f4e03f5cd28e3cac76a7dcd91e0d233f963437af25666908ef2ea5a9c6c7c817cfa42e675c81665df19971b070 libverto-0.2.5.tar.gz"
|