summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 21 insertions, 11 deletions
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/"
}