10
1
mirror of https://github.com/pfloos/quack synced 2024-11-04 13:13:51 +01:00
QuAcK/libxc-tools/install_libxc.sh

23 lines
380 B
Bash
Raw Normal View History

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