summaryrefslogtreecommitdiff
path: root/repo/system/libevent.xibuild
blob: 84e2dd4e6d6cdd968906fc8ef09e0aedb9a0023e (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
#!/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
}