slackbuilds/d/yaml-cpp/get_sources.sh
Michal Cieslakiewicz e9571a1fa6 Initial commit.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2020-04-16 19:31:17 +02:00

11 lines
327 B
Bash
Executable File

#!/bin/bash
SRC=yaml-cpp
VERSION=0.6.3
set -x
wget -O - https://github.com/jbeder/${SRC}/archive/${SRC}-${VERSION}.tar.gz | tar xzf -
# fix directory name:
mv ${SRC}-${SRC}-${VERSION} ${SRC}-${VERSION}
chown -R root:root ${SRC}-${VERSION}
tar cf - ${SRC}-${VERSION} | xz -c9 > ${SRC}-${VERSION}.tar.xz
rm -rf ${SRC}-${VERSION}