From 54ba74020d528f3770651a1e1050ff61e861e220 Mon Sep 17 00:00:00 2001 From: Alad Wenter Date: Mon, 6 Dec 2021 14:59:42 +0100 Subject: [PATCH] aurutils: fix aur --version output --- .SRCINFO | 4 +++- PKGBUILD | 13 ++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 5b923f5..6642150 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = aurutils pkgdesc = helper tools for the arch user repository pkgver = 3.2.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/AladW/aurutils install = aurutils.install changelog = aurutils.changelog @@ -17,6 +17,8 @@ pkgbase = aurutils optdepends = devtools: aur-chroot optdepends = vifm: default pager source = aurutils-3.2.0.tar.gz::https://github.com/AladW/aurutils/archive/refs/tags/3.2.0.tar.gz + source = fix-version.patch::https://github.com/AladW/aurutils/commit/483e6636c079f12b72287a7e32c68836e977d508.patch sha256sums = 60214a21a05b2dfe5f9e14b58a0c8beacc1a82841022956d60ac29e77f5e21da + sha256sums = 5576d1e3db0b4111caa55e460e923b0f43a2d6d544a2b2e7654ef7abc797e59d pkgname = aurutils diff --git a/PKGBUILD b/PKGBUILD index 68b6c57..c27f4a9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,21 +1,28 @@ # Maintainer: Alad Wenter pkgname=aurutils pkgver=3.2.0 -pkgrel=1 +pkgrel=2 pkgdesc='helper tools for the arch user repository' url='https://github.com/AladW/aurutils' arch=('any') license=('custom:ISC') -source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz") +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz" + "fix-version.patch::$url/commit/483e6636c079f12b72287a7e32c68836e977d508.patch") changelog=aurutils.changelog install=aurutils.install -sha256sums=('60214a21a05b2dfe5f9e14b58a0c8beacc1a82841022956d60ac29e77f5e21da') +sha256sums=('60214a21a05b2dfe5f9e14b58a0c8beacc1a82841022956d60ac29e77f5e21da' + '5576d1e3db0b4111caa55e460e923b0f43a2d6d544a2b2e7654ef7abc797e59d') depends=('git' 'jq' 'pacutils' 'curl' 'expect') optdepends=('bash-completion: bash completion' 'zsh: zsh completion' 'devtools: aur-chroot' 'vifm: default pager') +prepare() { + cd "$pkgname-$pkgver" + patch -p1 < "$srcdir"/fix-version.patch +} + build() { cd "$pkgname-$pkgver" make