diff options
author | Alexander Sulfrian | 2017-06-23 02:48:34 +0200 |
---|---|---|
committer | Alexander Sulfrian | 2017-06-23 02:50:11 +0200 |
commit | 7b9215bd40de57c3eabf43bc087a8ae5ab2b7027 (patch) | |
tree | 63d570a1d7514ed3caa626ad49b9e39600a06eff | |
parent | 69fc3db5874c9493f6d872daef7e046b317c9034 (diff) | |
download | aur-7b9215bd40de57c3eabf43bc087a8ae5ab2b7027.tar.gz |
pkgver from linux_media repository
The driver code is in the linux_media repo, the media_build repo contains only
build helper. As we use shallow clone for linux_media, we cannot use the
commit count and we have to use the commit date.
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ _pkgbase=tbs-linux_media-git pkgname=${_pkgbase}-dkms -pkgver=r762.af5f7c7 +pkgver=r20170623.031410.f563cede pkgrel=1 pkgdesc="TBS linux open source drivers (DKMS)" arch=('i686' 'x86_64') @@ -28,8 +28,8 @@ prepare() { } pkgver() { - cd "$srcdir/media_build" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$srcdir/media" + printf "r%s.%s" "$(git show -s --date=format:'%Y%m%d.%H%M%S' --format=%cd)" "$(git rev-parse --short HEAD)" } package() { |