blob: 0ae76a019d27b21fdab46407644c4db66d329afb (
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
56
57
58
59
60
61
|
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevent
pkgver=2.1.8
_pkgver=$pkgver-stable
pkgrel=4
pkgdesc="An event notification library"
url="http://libevent.org/"
arch="all"
license="BSD-3-Clause"
options="!check" # regression tests failed
depends_dev="python2"
makedepends="$depends_dev libressl-dev"
subpackages="$pkgname-dev"
source="https://github.com/$pkgname/$pkgname/releases/download/release-$_pkgver/$pkgname-$_pkgver.tar.gz
libressl.patch
"
builddir="$srcdir/$pkgname-$_pkgver"
# secfixes:
# 2.1.8-r0:
# - CVE-2016-10195
# - CVE-2016-10196
# - CVE-2016-10197
prepare() {
default_prepare
cd "$builddir"
# help provides tracing work out correctly
sed -i -e "s/@VERSION@/$pkgver-r$pkgrel/" *.pc.in
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc
make
}
check() {
cd "$builddir"
make -j1 check
}
package() {
cd "$builddir"
make -j1 DESTDIR=$pkgdir install
}
dev() {
replaces="libevent"
default_dev
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
sha512sums="a2fd3dd111e73634e4aeb1b29d06e420b15c024d7b47778883b5f8a4ff320b5057a8164c6d50b53bd196c79d572ce2639fe6265e03a93304b09c22b41e4c2a17 libevent-2.1.8-stable.tar.gz
10abdd9195826739144b2164c2b95a65a7202ed7e1d202ec6f149e286377ee0726f05172ffabcfc6cf83b2832d883bb15632d9323f6907106580989c7af7ee95 libressl.patch"
|