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 /PKGBUILD | |
parent | 745d92fa9ac281528c97caa2e97cc882a7537c8d (diff) | |
download | aur-61245a6ad7abd677ff78edd2e5d17f61621984c6.tar.gz |
Set pkg version dynamically
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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" |