[arch-commits] Commit in elvish/trunk (PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Mon Mar 21 06:58:12 UTC 2022
Date: Monday, March 21, 2022 @ 06:58:11
Author: grawlinson
Revision: 1166651
upgpkg: elvish 0.18.0-1
* New upstream release.
* Switch source to git commit from github tarball.
* Explicitly disable LTO.
Modified:
elvish/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-21 06:52:06 UTC (rev 1166650)
+++ PKGBUILD 2022-03-21 06:58:11 UTC (rev 1166651)
@@ -3,7 +3,7 @@
# Contributor: Qi Xiao <xiaqqaix at gmail dot com>
pkgname=elvish
-pkgver=0.17.0
+pkgver=0.18.0
pkgrel=1
pkgdesc="A friendly and expressive Unix shell"
arch=('x86_64')
@@ -12,12 +12,19 @@
depends=('glibc')
makedepends=('git' 'go')
install="$pkgname.install"
-source=("$pkgname-$pkgver.tar.gz::https://github.com/elves/elvish/archive/v$pkgver.tar.gz")
-sha512sums=('bbf4895a99f3c1aa1d35cc04073feba121fda72afcb5dc241c5b1ded3c3f815d81f3ad4b9a51878ead865ecee3ea5dacc855a38057aa7e49a2ada306fc950895')
-b2sums=('3725787f287dff6d2e740f75a4a62a47815166c7146d32b9358720209fc9eb4660b68599f8cc05313a44a5f02d97a0b30077588d9950048ae02a66f741795096')
+options=('!lto')
+_commit='214665f014b7d2e6e2d17ee33e9057bab323f842'
+source=("$pkgname::git+https://github.com/elves/elvish.git#commit=$_commit")
+b2sums=('SKIP')
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
prepare() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
# create directory for build output
mkdir build
@@ -27,7 +34,7 @@
}
build() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
# set Go flags
export CGO_CPPFLAGS="${CPPFLAGS}"
@@ -47,12 +54,12 @@
}
check() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
go test -v -race ./...
}
package() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
# binary
install -vDm755 -t "$pkgdir/usr/bin" build/elvish
More information about the arch-commits
mailing list