30 lines
640 B
Bash
Executable File
30 lines
640 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
dnf -y --nogpgcheck build-dep ../../libverto.spec
|
|
|
|
wget https://github.com/latchset/libverto/releases/download/0.3.2/libverto-0.3.2.tar.gz
|
|
tar -xvzf libverto-0.3.2.tar.gz
|
|
cd libverto-0.3.2
|
|
|
|
# Generate Makefiles, directory layout, ...
|
|
autoreconf -fiv
|
|
./configure --with-glib --with-libevent --disable-dependency-tracking
|
|
make -sj
|
|
|
|
# Avoid running `make check` here
|
|
cd tests
|
|
ls *.c | while read f; do
|
|
f="$(echo $f | awk -F. '{print $1}')"
|
|
make $f
|
|
done
|
|
cd ..
|
|
|
|
# Overwrite the build.
|
|
cd src/.libs
|
|
cp /usr/lib64/libverto-glib.so.1.0.0 .
|
|
cp /usr/lib64/libverto-libevent.so.1.0.0 .
|
|
cd ../..
|
|
|
|
# Go time.
|
|
exec make check
|