Last active
February 24, 2021 12:25
-
-
Save LilithL/06d77aee3f095d288df8e7d6c5d032be to your computer and use it in GitHub Desktop.
Bottomify PKGBUILD
This file contains hidden or 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
pkgname=bottomify | |
pkgver=1.1.1 | |
pkgrel=0 | |
pkgdesc="Fantastic (maybe) CLI for translating between bottom and human-readable text" | |
provides=('bottomify') | |
makedepends=('cargo') | |
arch=('x86_64') | |
url="https://github.com/bottom-software-foundation/bottom-rs" | |
source=("$pkgname::git+https://github.com/bottom-software-foundation/bottom-rs.git") | |
license=('MIT') | |
sha512sums=('SKIP') | |
pkgver(){ | |
cd $pkgname | |
printf "%s" "$(grep 'version =' ./Cargo.toml | awk -F '\"' '{print $2}')" | |
} | |
build() { | |
cd $pkgname | |
cargo build --release | |
} | |
package() { | |
cd $srcdir/$pkgname | |
install -Dm755 target/release/bottomify "$pkgdir/usr/bin/bottomify" | |
install -Dm644 "LICENSE.md" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment