From 45b153e5ce02825d5abf843ce833b5ac643f4aa1 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Tue, 11 Aug 2020 19:24:44 +0200 Subject: [PATCH] update PKGBUILD --- PKGBUILD | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 080e822..b3e6560 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Lucien Cartier-Tilet -pkgname=pumopm-git -pkgver=.r0.4e2acb9 +pkgname=pumopm +pkgver=0.1.0 pkgrel=1 pkgdesc="A tiny power manager written in Rust" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') @@ -9,15 +9,8 @@ license=('GPL3') depends=() makedepends=('rustup' 'git') options=() -source=("$pkgname::git+https://github.com/phundrak/pumopm") -md5sums=('SKIP') - -pkgver() { - cd "$pkgname" - local tag=$(git tag --sort=-v:refname | grep '^[0-9]' | head -1) - local commits_since=$(git rev-list $tag..HEAD --count) - echo "$tag.r$commits_since.$(git log --pretty=format:'%h' -n 1)" -} +source=("$pkgname::https://labs.phundrak.com/phundrak/pumopm/archive/$pkgver.tar.gz") +md5sums=('347a95efacdbf9f8ab3b2da6a7eff6cc') build() { cd "$pkgname"