[arch-commits] Commit in zoxide/trunk (PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Fri Apr 22 16:29:19 UTC 2022
Date: Friday, April 22, 2022 @ 16:29:19
Author: grawlinson
Revision: 1187361
upgpkg: zoxide 0.8.1-1
* New upstream release.
* Switch source to git commit from github tarball.
Modified:
zoxide/trunk/PKGBUILD
----------+
PKGBUILD | 31 ++++++++++++++++++++-----------
1 file changed, 20 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-22 16:14:05 UTC (rev 1187360)
+++ PKGBUILD 2022-04-22 16:29:19 UTC (rev 1187361)
@@ -2,33 +2,42 @@
# Contributor: desbma
pkgname=zoxide
-pkgver=0.8.0
+pkgver=0.8.1
pkgrel=1
-pkgdesc="A smarter cd command for your terminal"
+pkgdesc='A smarter cd command for your terminal'
arch=('x86_64')
-url="https://github.com/ajeetdsouza/zoxide"
+url='https://github.com/ajeetdsouza/zoxide'
license=('MIT')
depends=('gcc-libs')
-makedepends=('rust')
+makedepends=('git' 'rust')
optdepends=(
'fzf: for interactive selection'
)
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('5f0bed68a391a28b7065ec7d50e5477547174f07e6e785817cb724b0bf59f174b84da2d4f22a9f49e06595a6570a2885f99ef7d0c08711a4ee46f5d3086cae96')
-b2sums=('739f594bcbe916acc2c6ff076c86583621b296905641b5d197096399de8cb683fb8c82c06f9f3859e768a2247127fe1a190d0d379ba5f86d785cb6c211e7b6a4')
+options=('!lto')
+_commit='3a3008163afd01e8f01b39e6253338c5e56307fb'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
prepare() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
+
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
+
cargo build --frozen --release --all-features
}
package() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
# binary
install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
@@ -37,7 +46,7 @@
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
# man pages
- install -vDm644 -t "$pkgdir/usr/share/man/man1" man/*.1
+ install -vDm644 -t "$pkgdir/usr/share/man/man1" man/man1/*.1
# documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
More information about the arch-commits
mailing list