yochananmarqos

dockeye

Nov 29th, 2021
889
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=dockeye
  2. pkgver=0.1.0
  3. pkgrel=1
  4. pkgdesc="GUI app for managing Docker"
  5. arch=('x86_64')
  6. url="https://github.com/vv9k/dockeye"
  7. license=('GPL3')
  8. depends=('docker' 'gcc-libs' 'libxcb')
  9. makedepends=('cargo')
  10. source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
  11. sha256sums=('5a2bb2ae5972cdea193b24e9b315352181e48001c58fb6846abcb6e5a3936c67')
  12.  
  13. prepare() {
  14.   cd "$pkgname-$pkgver"
  15.   export RUSTUP_TOOLCHAIN=stable
  16.   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
  17. }
  18.  
  19. build() {
  20.   cd "$pkgname-$pkgver"
  21.   export RUSTUP_TOOLCHAIN=stable
  22.   export CARGO_TARGET_DIR=target
  23.   cargo build --frozen --release --all-features
  24. }
  25.  
  26. package() {
  27.   cd "$pkgname-$pkgver"
  28.   install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin/"
  29. }
RAW Paste Data