summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJiri Tyr2018-05-26 16:28:13 +0100
committerJiri Tyr2018-05-26 16:30:32 +0100
commit61245a6ad7abd677ff78edd2e5d17f61621984c6 (patch)
treee5ec8ca6d7b59419db1c81295ed1ab597b502732 /PKGBUILD
parent745d92fa9ac281528c97caa2e97cc882a7537c8d (diff)
downloadaur-61245a6ad7abd677ff78edd2e5d17f61621984c6.tar.gz
Set pkg version dynamically
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b7d9ff495e1..742118aa486 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"