diff options
author | Quentin Bouvet | 2021-03-05 23:18:14 +0100 |
---|---|---|
committer | Quentin Bouvet | 2021-03-05 23:18:14 +0100 |
commit | 81d87b5c66fa7c33d0c3ed9745371b3a596a4118 (patch) | |
tree | 6ef9993b2e476cc3e8d20a96e257e5fee1e3dadd /PKGBUILD | |
parent | 33756e6eb30ca96a4fe6e9cc17ba42df2310fd7b (diff) | |
download | aur-81d87b5c66fa7c33d0c3ed9745371b3a596a4118.tar.gz |
Fix: -git packages should not refer to ${pkgver} in pkgver()
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2,7 +2,7 @@ # Maintainer: Quentin Bouvet <qbouvet at outlook dot com> pkgname=checksum-blister-kde-service-menu-git provides=(checksum-blister-kde-service-menu) -pkgver=r8.44290fc +pkgver=v2.1.r0.g44290fc pkgrel=1 pkgdesc="sha256/sha512/sha1/md5 checksums in dolphin right-click menu" arch=('any') @@ -11,11 +11,11 @@ license=('GPLv3') depends=('dolphin' 'libnotify' 'xsel') makedepends=('git') -source=("${pkgname}-${pkgver}::git+https://github.com/KVAnton-WEB/Checksum-Blister.git#branch=master") +source=("${pkgname}::git+https://github.com/KVAnton-WEB/Checksum-Blister.git#branch=master") sha256sums=('SKIP') pkgver() { - cd "${srcdir}/$pkgname-$pkgver" + cd "${srcdir}/$pkgname" # Cf. https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git ( set -o pipefail git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || @@ -24,7 +24,7 @@ pkgver() { } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}/${pkgname}" install -D -m0755 -t "${pkgdir}/usr/local/bin" \ "checksum_blister" install -D -m0755 -t "${pkgdir}/usr/share/kservices5/ServiceMenus/" \ |