mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
9c3b29e005
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
17 lines
414 B
Bash
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
|