slackbuilds_ponce/multimedia/x264/x264-mksrctarball.sh
Heinz Wiesinger 9c3b29e005
multimedia/x264: Updated for version git_20210613_5db6aa6c
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2021-09-22 11:33:21 +07:00

17 lines
414 B
Bash

#!/bin/bash
git clone https://code.videolan.org/videolan/x264.git
cd x264
git checkout stable
VERSION="git_$(git log --format="%ad_%h" --date=short | head -n 1 | tr -d -)"
LONGDATE="$(git log -1 --format=%cd --date=format:%c )"
cd ..
mv x264 x264-$VERSION
tar --exclude-vcs -cf x264-$VERSION.tar x264-$VERSION
plzip -9 -v x264-$VERSION.tar
touch -d "$LONGDATE" x264-$VERSION.tar.lz
rm -rf x264-$VERSION