summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Martinez2021-08-26 13:30:38 -0500
committerLuis Martinez2021-08-26 13:30:38 -0500
commit7b4c85fc44e88004871edab94e77650e000c9974 (patch)
tree744b0ac0dbff49ad40c8e449cb9d415b0b313226
parentbb794efc40d5e023cce0e621568d0ea74b94fc68 (diff)
downloadaur-7b4c85fc44e88004871edab94e77650e000c9974.tar.gz
update in accordance to updated Rust packaging guidelines
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD32
2 files changed, 22 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7b4471401a2..2a77db7735b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = cork-rs-git
pkgdesc = A command-line calculator for hex-lovers
- pkgver = r30.bd62c53
+ pkgver = r37.49f9200
pkgrel = 1
url = https://github.com/reddocmd/cork
arch = x86_64
@@ -14,4 +14,3 @@ pkgbase = cork-rs-git
sha256sums = SKIP
pkgname = cork-rs-git
-
diff --git a/PKGBUILD b/PKGBUILD
index a1d77be3cef..ac2bdeb2535 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
-# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
+# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=cork-rs-git
-pkgver=r30.bd62c53
+pkgver=r37.49f9200
pkgrel=1
pkgdesc="A command-line calculator for hex-lovers"
arch=('x86_64')
@@ -15,22 +15,32 @@ source=("$pkgname::git+$url")
sha256sums=('SKIP')
pkgver() {
- cd "$pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$pkgname"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
- cd "$pkgname"
- cargo build --release --locked --all-features --target-dir=target
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
+
+ cd "$pkgname"
+ cargo build --release --frozen --all-features
}
check() {
- cd "$pkgname"
- cargo test --release --locked --target-dir=target
+ export RUSTUP_TOOLCHAIN=stable
+
+ cd "$pkgname"
+ cargo test --frozen --all-features
}
package() {
- cd "$pkgname"
- install -Dvm 755 target/release/cork -t "$pkgdir/usr/bin/"
- install -Dvm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+ cd "$pkgname"
+ install -Dm 755 target/release/cork -t "$pkgdir/usr/bin/"
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}