diff options
author | Jiri Tyr | 2018-05-26 16:28:13 +0100 |
---|---|---|
committer | Jiri Tyr | 2018-05-26 16:30:32 +0100 |
commit | 61245a6ad7abd677ff78edd2e5d17f61621984c6 (patch) | |
tree | e5ec8ca6d7b59419db1c81295ed1ab597b502732 | |
parent | 745d92fa9ac281528c97caa2e97cc882a7537c8d (diff) | |
download | aur-61245a6ad7abd677ff78edd2e5d17f61621984c6.tar.gz |
Set pkg version dynamically
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 13 |
3 files changed, 16 insertions, 13 deletions
@@ -1,9 +1,7 @@ -# Generated by mksrcinfo v8 -# Sat Jul 1 01:40:18 UTC 2017 pkgbase = plymouth-theme-arch-breeze-git pkgdesc = Plymouth theme for Arch Linux inspired by KDE Breeze. - pkgver = r2.5061c0e - pkgrel = 2 + pkgver = r3.d7ae74d + pkgrel = 1 url = https://github.com/jtyr/plymouth-theme-arch-breeze/ install = plymouth-theme-arch-breeze-git.install arch = x86_64 @@ -14,7 +12,7 @@ pkgbase = plymouth-theme-arch-breeze-git license = MIT makedepends = git depends = plymouth - source = https://github.com/jtyr/plymouth-theme-arch-breeze/archive/master.tar.gz + source = git+https://github.com/jtyr/plymouth-theme-arch-breeze.git sha256sums = SKIP pkgname = plymouth-theme-arch-breeze-git diff --git a/.gitignore b/.gitignore index a5a41c94f7e4..a6e7c86dc164 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -master.tar.gz -plymouth-theme-arch-breeze-git-* -pkg -src +* +!.SRCINFO +!PKGBUILD +!plymouth-theme-arch-breeze-git.install @@ -2,8 +2,8 @@ _pkgname=plymouth-theme-arch-breeze pkgname="${_pkgname}-git" -pkgver=r2.5061c0e -pkgrel=2 +pkgver=r3.d7ae74d +pkgrel=1 pkgdesc='Plymouth theme for Arch Linux inspired by KDE Breeze.' arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h') url="https://github.com/jtyr/${_pkgname}/" @@ -11,11 +11,16 @@ license=('MIT') install="${pkgname}.install" depends=('plymouth') makedepends=('git') -source=("https://github.com/jtyr/${_pkgname}/archive/master.tar.gz") +source=("git+https://github.com/jtyr/$_pkgname.git") sha256sums=('SKIP') +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + package() { - cd "${_pkgname}-master" + cd "$_pkgname" _themedir="$pkgdir/usr/share/plymouth/themes/arch-breeze" |