diff options
author | Daniel Bermond | 2021-01-27 22:31:01 +0000 |
---|---|---|
committer | Daniel Bermond | 2021-01-27 22:31:01 +0000 |
commit | 98e42e86c86bc35df7ba7bcd8e16b8c989ab7819 (patch) | |
tree | 58ab09c9d48b9d59bb1d6825d472ac1d146149fb /PKGBUILD | |
parent | 0f3d55dc0d5d466b86812d25b3fd54e83cd4468f (diff) | |
download | aur-x264-git.tar.gz |
Cosmetic changes
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -32,17 +32,9 @@ prepare() { } pkgver() { - cd x264 - - local _version - local _revision - local _shorthash - - _version="$(grep '#define X264_BUILD' x264.h | awk '{ print $3 }')" - _revision="$( git rev-list --count HEAD)" - _shorthash="$(git rev-parse --short HEAD)" - - printf '%s.r%s.g%s' "$_version" "$_revision" "$_shorthash" + printf '%s.r%s.g%s' "$(grep '#define X264_BUILD' x264/x264.h | awk '{ print $3 }')" \ + "$(git -C x264 rev-list --count HEAD)" \ + "$(git -C x264 rev-parse --short HEAD)" } build() { |