diff options
author | XZS | 2015-12-25 14:44:35 +0100 |
---|---|---|
committer | XZS | 2015-12-25 15:51:37 +0100 |
commit | 31618b9f6f3cc3e75ed8c4ac5e03ae813c38852d (patch) | |
tree | 18be13a90e1f682f4bee4148f2aeda775327abe7 | |
parent | f48b7009256988eba38c36b13524d2eeeff9c4ae (diff) | |
download | aur-31618b9f6f3cc3e75ed8c4ac5e03ae813c38852d.tar.gz |
automatically version
As there is no trace of a version number in the theme files themselves
apart from the compatible gnome-shell version, resorting to the
last modification time of any file at least provides some means to tell
apart releases.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 16 insertions, 3 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Wed Dec 23 12:59:37 UTC 2015 +# Fri Dec 25 14:51:13 UTC 2015 pkgbase = gnome-shell-theme-aurora pkgdesc = Aurora GNOME Shell,GTK2,GTK3 theme pkgver = 3.18.20151219 @@ -13,7 +13,7 @@ pkgbase = gnome-shell-theme-aurora depends = gtk-engine-murrine depends = gdk-pixbuf2 optdepends = gnome-tweak-tool: A tool to customize advanced GNOME 3 options. - source = gnome-shell-theme-aurora-3.18.20151219.tar.gz::https://www.dropbox.com/s/4ik0pbbpsiqe4ci/Aurora-3.18.tar.gz?dl=1 + source = gnome-shell-theme-aurora.tar.gz::https://www.dropbox.com/s/4ik0pbbpsiqe4ci/Aurora-3.18.tar.gz?dl=1 sha256sums = bae3d9c16ed37ad9e3a67a4d019d2e8bff70a7fadbf87a722c2a960d6fd56a4c pkgname = gnome-shell-theme-aurora @@ -10,9 +10,22 @@ url="http://opendesktop.org/content/show.php?content=170523" license=('GPL3') depends=(gnome-{shell,themes-standard} gtk-{engines,engine-murrine} gdk-pixbuf2) optdepends=("gnome-tweak-tool: A tool to customize advanced GNOME 3 options.") -source=("${pkgname}-${pkgver}.tar.gz::https://www.dropbox.com/s/4ik0pbbpsiqe4ci/Aurora-3.18.tar.gz?dl=1") +source=("${pkgname}.tar.gz::https://www.dropbox.com/s/4ik0pbbpsiqe4ci/Aurora-${pkgver%.*}.tar.gz?dl=1") sha256sums=('bae3d9c16ed37ad9e3a67a4d019d2e8bff70a7fadbf87a722c2a960d6fd56a4c') +pkgver() { + dir="$(echo Aurora-*)" + echo -n "${dir##*-}." + while read -rd $'\0' + do + if [[ "$REPLY" -gt "$max" ]] + then + max="$REPLY" + fi + done < <(find "$dir" -type f -exec stat --printf="%Y\0" '{}' +) + date -d "@$max" +%Y%m%d +} + package() { install -d ${pkgdir}/usr/share/themes cp --no-preserve=mode -r ${srcdir}/Aurora-3.18/* ${pkgdir}/usr/share/themes |