Skip to content

Instantly share code, notes, and snippets.

@LilithL
Last active February 24, 2021 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LilithL/06d77aee3f095d288df8e7d6c5d032be to your computer and use it in GitHub Desktop.
Save LilithL/06d77aee3f095d288df8e7d6c5d032be to your computer and use it in GitHub Desktop.
Bottomify PKGBUILD
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