summaryrefslogtreecommitdiff
path: root/repo/system/libevent.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-04-17 22:07:52 +0100
committerdavidovski <david@davidovski.xyz>2022-04-17 22:07:52 +0100
commitc35d083dc525e223b085ec00e6863ea6eafb003c (patch)
tree5bbe25b4f92cd1821c8cbbefed9c19de6e42b98e /repo/system/libevent.xibuild
parent7cc715c1249422ddf91987be64a35eef43e3e62d (diff)
updated musl
Diffstat (limited to 'repo/system/libevent.xibuild')
-rw-r--r--repo/system/libevent.xibuild28
1 files changed, 28 insertions, 0 deletions
diff --git a/repo/system/libevent.xibuild b/repo/system/libevent.xibuild
new file mode 100644
index 0000000..84e2dd4
--- /dev/null
+++ b/repo/system/libevent.xibuild
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+NAME="libevent"
+DESC="An event notification library"
+
+MAKEDEPS="make "
+DEPS="openssl musl "
+
+PKG_VER=2.1.12
+SOURCE="https://github.com/libevent/libevent/releases/download/release-$PKG_VER-stable/libevent-$PKG_VER-stable.tar.gz"
+
+prepare() {
+ sed -i '1s|^#!/usr/bin/env python$|#!/usr/bin/python3|' event_rpcgen.py
+ sed -i -e "s/@VERSION@/$PKG_VER/" *.pc.in
+}
+
+build () {
+ ./configure \
+ --prefix=/usr
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make -j1 DESTDIR=$PKG_DEST install
+}