#!/SBUILD _disabled: false pkg: "bat" pkg_id: "sharkdp.bat" pkg_type: "static" ghcr_pkg: "sharkdp/bat" category: - "ConsoleOnly" - "Utility" description: "Cat clone with syntax highlighting and git integration" homepage: - "https://github.com/sharkdp/bat" maintainer: - "QaidVoid (contact@qaidvoid.dev)" license: - "MIT" build_asset: - url: "https://github.com/sharkdp/bat/releases/download/v${PKGVER}/bat-v${PKGVER}-${ARCH}-unknown-linux-musl.tar.gz" out: "bat.tar.gz" note: - "Official binary from https://github.com/sharkdp/bat" - "[PORTABLE] (Portable Static Binary)" - "[NO_DESKTOP_INTEGRATION]" provides: - "bat" repology: - "bat-cat" src_url: - "https://github.com/sharkdp/bat" tag: - "syntax-highlighting" - "git" x_exec: host: - "x86_64-linux" - "aarch64-linux" shell: "sh" pkgver: | curl -qfsSL "https://api.github.com/repos/sharkdp/bat/releases/latest" | jq -r '.tag_name' | tr -d 'v' run: | tar -xf "bat.tar.gz" -C "$SBUILD_TMPDIR/" mv "$SBUILD_TMPDIR/bat-v${PKGVER}-${ARCH}-unknown-linux-musl/bat" "$SBUILD_OUTDIR/$PKG" mv "$SBUILD_TMPDIR/bat-v${PKGVER}-${ARCH}-unknown-linux-musl/LICENSE-MIT" "$SBUILD_OUTDIR/LICENSE" rm -rf "bat.tar.gz"