4
1
mirror of https://github.com/pfloos/quack synced 2024-11-19 12:32:36 +01:00
quack/libxc-tools/install_libxc.sh
2020-10-14 08:22:48 +02:00

23 lines
380 B
Bash
Executable File

#!/bin/bash
set -e
: ${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
./configure --prefix=$QUACK_ROOT
make
#make check
make install
set +x