1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-27 09:48:33 +00:00
morpheus/cross-scripts/libevent
sin 5ffd49a86d We can build with dash too now
Also rename pkgs/arch-rootfs to pkgs/emul.

The create-bootable script still needs to be fixed
to work with dash.
2014-02-14 10:58:17 +00:00

25 lines
474 B
Plaintext

url=$mirror/libevent-2.0.21-stable.tar.gz
fetch() {
wget -c $url -O src/libevent-2.0.21-stable.tar.gz
}
unpack() {
cd src
[ -d libevent-2.0.21-stable ] || tar xzf libevent-2.0.21-stable.tar.gz
cd -
}
build() {
cd src/libevent-2.0.21-stable
CC="x86_64-linux-musl-gcc -static" ./configure --prefix=$libcroot --disable-shared --enable-static || return 1
make -j$nprocs || return 1
cd -
}
install() {
cd src/libevent-2.0.21-stable
make install || return 1
cd -
}