Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions EVENT__SIZEOF_TIME_T.patch

This file was deleted.

36 changes: 10 additions & 26 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,20 @@
# Maintainer: Aleksana QwQ <me@aleksana.moe>

pkgname=libevent
pkgver=2.1.12
pkgrel=8
pkgver=2.1.13
pkgrel=1
pkgdesc="Event notification library"
url="https://libevent.org/"
arch=(x86_64 aarch64 riscv64 loongarch64)
license=(BSD)
depends=(openssl)
license=(BSD-3-Clause)
depends=(musl openssl)
makedepends=(cmake ninja python zlib)
optdepends=('python: event_rpcgen.py')
provides=(libevent{,_core,_extra,_openssl,_pthreads}-2.1.so)
# EVENT__SIZEOF_TIME_T.patch: Fix Firefox build
# libevent-2.1.12-openssl-compat.patch: Fix build with OpenSSL 3.0
source=(
"https://github.com/libevent/libevent/releases/download/release-$pkgver-stable/libevent-$pkgver-stable.tar.gz"
EVENT__SIZEOF_TIME_T.patch
libevent-2.1.12-openssl-compat.patch
)
sha256sums=('92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb'
'945fc885b15692721bc7ae52f5774ef4fab8cc0f6108baa8860ab368de8675cf'
'e41527c55f6dacc6453b13eeeea2664798496896b796abcd2a5c8304c9eb2bae')
source=("https://github.com/libevent/libevent/releases/download/release-$pkgver-stable/libevent-$pkgver-stable.tar.gz")
sha256sums=('f7e9383b8c0baa81b687e5b5eecc01beefaf1b19b64151d95ed61647fe7a315c')

prepare(){
_patch_ libevent-$pkgver-stable
}

build()
{
build() {
cmake -S libevent-$pkgver-stable -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
Expand All @@ -39,18 +26,15 @@ build()
cmake --build build
}

check()
{
check() {
cd build
# four matching test failed, unknown reason (suspect zlib-ng)
ctest -E "regress__(timerfd_)?(changelist_)?(EPOLL|SELECT|POLL)(_debug)?" \
ctest \
--output-on-failure \
--stop-on-failure \
-j$(nproc)
}

package_libevent()
{
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libevent-$pkgver-stable/LICENSE
}
74 changes: 0 additions & 74 deletions libevent-2.1.12-openssl-compat.patch

This file was deleted.