Last active
February 14, 2022 00:21
-
-
Save orhun/9b41236c716b66eaf97883593b3b89eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Please report issues with the package on GitHub or in the comments | |
# Maintainer: Lunush | |
pkgname=rates | |
pkgver=0.6.0 | |
pkgrel=1 | |
pkgdesc="Currency exchange rates in your terminal" | |
arch=("x86_64") | |
url="https://github.com/lunush/rates" | |
license=('Apache' 'MIT') | |
depends=('gcc-libs') | |
makedepends=('cargo') | |
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") | |
sha256sums=('87eaaff12221fd285aa5d42359579ce64b0adf10b1b3539d422d5707340484fb') | |
options=('!lto') | |
prepare() { | |
cd "$pkgname-$pkgver" | |
cargo fetch --locked --target "$CARCH-unknown-linux-gnu" | |
} | |
build() { | |
cd "$pkgname-$pkgver" | |
cargo build --release --frozen | |
} | |
check() { | |
cd "$pkgname-$pkgver" | |
cargo test --frozen | |
} | |
package() { | |
cd "$pkgname-$pkgver" | |
install -Dm755 "target/release/rates" "$pkgdir/usr/bin/rates" | |
install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT" | |
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment