diff options
Diffstat (limited to 'main/libevent')
-rw-r--r-- | main/libevent/APKBUILD | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/main/libevent/APKBUILD b/main/libevent/APKBUILD index 04b351ff93..bd2ebc35d9 100644 --- a/main/libevent/APKBUILD +++ b/main/libevent/APKBUILD @@ -2,18 +2,19 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libevent pkgver=2.1.8 +_pkgver=$pkgver-stable pkgrel=2 pkgdesc="An event notification library" url="http://libevent.org/" arch="all" -license="BSD" -depends="" +license="BSD-3-Clause" depends_dev="python2" makedepends="$depends_dev libressl-dev" subpackages="$pkgname-dev" -source="https://github.com/$pkgname/$pkgname/releases/download/release-${pkgver}-stable/$pkgname-${pkgver}-stable.tar.gz +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: @@ -21,13 +22,6 @@ source="https://github.com/$pkgname/$pkgname/releases/download/release-${pkgver} # - CVE-2016-10196 # - CVE-2016-10197 -builddir="$srcdir"/$pkgname-$pkgver-stable - -prepare() { - cd "$builddir" - default_prepare || return 1 -} - build() { cd "$builddir" ./configure \ @@ -35,14 +29,13 @@ build() { --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ - --disable-static \ - || return 1 - make || return 1 + --disable-static + make } package() { cd "$builddir" - make -j1 DESTDIR=$pkgdir install || return 1 + make -j1 DESTDIR=$pkgdir install } dev() { @@ -51,9 +44,5 @@ dev() { mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } -md5sums="f3eeaed018542963b7d2416ef1135ecc libevent-2.1.8-stable.tar.gz -281a6844632a5e7d76f39a0f858f7ff3 libressl.patch" -sha256sums="965cc5a8bb46ce4199a47e9b2c9e1cae3b137e8356ffdad6d94d3b9069b71dc2 libevent-2.1.8-stable.tar.gz -81ccaf983f8e3e46b19f293b49c32887da53f6daeb843cee9052aabf194df458 libressl.patch" sha512sums="a2fd3dd111e73634e4aeb1b29d06e420b15c024d7b47778883b5f8a4ff320b5057a8164c6d50b53bd196c79d572ce2639fe6265e03a93304b09c22b41e4c2a17 libevent-2.1.8-stable.tar.gz 10abdd9195826739144b2164c2b95a65a7202ed7e1d202ec6f149e286377ee0726f05172ffabcfc6cf83b2832d883bb15632d9323f6907106580989c7af7ee95 libressl.patch" |