2020-10-12 14:25:30 +02:00
|
|
|
#!/bin/bash
|
2020-10-14 08:22:48 +02:00
|
|
|
set -e
|
2020-10-12 14:25:30 +02:00
|
|
|
|
2020-10-14 08:22:48 +02:00
|
|
|
: ${LIBXC_VERSION:=5.0.0}
|
|
|
|
: ${LXC:=libxc-${LIBXC_VERSION}}
|
|
|
|
: ${TARGZ:=${LXC}.tar.gz}
|
|
|
|
|
|
|
|
if [[ $1 == "install" ]] ; then
|
|
|
|
make -C $LXC install
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -x
|
|
|
|
[[ -f $TARGZ ]] || wget https://gitlab.com/libxc/libxc/-/archive/${LIBXC_VERSION}/${TARGZ}
|
|
|
|
tar -xzf $TARGZ
|
|
|
|
cd $LXC
|
|
|
|
autoreconf -i
|
2020-10-12 14:25:30 +02:00
|
|
|
./configure --prefix=$QUACK_ROOT
|
|
|
|
make
|
2020-10-14 08:22:48 +02:00
|
|
|
#make check
|
2020-10-12 14:25:30 +02:00
|
|
|
make install
|
2020-10-14 08:22:48 +02:00
|
|
|
set +x
|