[arch-commits] Commit in cargo-edit/trunk (PKGBUILD)
Kpcyrd
kpcyrd at gemini.archlinux.org
Fri Sep 3 13:47:49 UTC 2021
Date: Friday, September 3, 2021 @ 13:47:49
Author: kpcyrd
Revision: 1010665
upgpkg: cargo-edit 0.7.0-2 - dynamically link libgit2
Modified:
cargo-edit/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-09-03 10:44:19 UTC (rev 1010664)
+++ PKGBUILD 2021-09-03 13:47:49 UTC (rev 1010665)
@@ -2,25 +2,30 @@
pkgname=cargo-edit
pkgver=0.7.0
-pkgrel=1
+pkgrel=2
pkgdesc='Managing cargo dependencies from the command line'
url='https://github.com/killercup/cargo-edit/releases'
arch=('x86_64')
license=('MIT' 'APACHE')
-depends=('cargo')
+depends=('cargo' 'libgit2')
source=(https://github.com/killercup/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('462712406e4cc2cf2baf3cbc95c89a306f1683ebe184611b77d20a1d1176f98cc7cd855c0a727e303b19ecfd739b03d714f16779feb4b339692176aa7996e2ad')
b2sums=('9fae3bc32ee1747be4e7c5c23987fe36b09648884422a3f19e801dd8e448e8253899069b33a3b1cf235141866d8331037844294dc0860b4ac126a3ac849cfa25')
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
build() {
cd ${pkgname}-${pkgver}
- cargo build --release --locked
+ cargo build --frozen --release
}
check() {
cd ${pkgname}-${pkgver}
# tests depend on target/debug/
- cargo test --locked
+ cargo test --frozen
}
package() {
More information about the arch-commits
mailing list