# Maintainer: xgjmibzr pkgname=httm-bin pkgver=0.34.4 pkgrel=1 pkgdesc="Prints the size, date and locations of available unique versions (deduplicated by modify time and size) of files residing on ZFS, BTRFS, or NILFS snapshots. (binary .deb)" arch=('x86_64') url="https://github.com/kimono-koans/httm" license=('MPL-2.0') provides=('httm') conflicts=('httm' 'httm-git') optdepends=('btrfs-progs: BTRFS support' 'zfs-utils: ZFS support' 'nilfs-utils: NILFS2 support') options=('!strip' '!emptydirs') source=("${pkgname}-${pkgver}.deb::${url}/releases/download/${pkgver}/httm_${pkgver}-1_amd64.deb") sha512sums=('6e04ca24b22f24eae2f8d39d15ce843a036436900cb77eadbac8c1ab81db63fa388d8adc86dc87f8abb45d28d9b6455cef43e9b41a33dc9b8fad3dba2379f2a9') prepare() { tar -xf data.tar.xz gzip -df usr/share/man/man1/httm.1.gz } package(){ _name=${pkgname//[-bin]/} # install executable install -Dm755 "${srcdir}/usr/bin/${_name}" "${pkgdir}/usr/bin/${_name}" # install helper scripts install -Dm755 "${srcdir}/usr/bin/bowie" "${pkgdir}/usr/bin/bowie" install -Dm755 "${srcdir}/usr/bin/nicotine" "${pkgdir}/usr/bin/nicotine" [[ -z "$( command -v zfs exit 0 )" ]] || install -Dm755 "${srcdir}/usr/bin/ounce" "${pkgdir}/usr/bin/ounce" [[ -n "$( command -v zfs exit 0 )" ]] || echo "zfs not in path, helper script 'ounce' not installed" # install man page install -Dm644 "${srcdir}/usr/share/man/man1/${_name}.1" "${pkgdir}/usr/share/man/man1/${_name}.1" # install README.md install -Dm644 "${srcdir}/usr/share/doc/${_name}/README.md" "${pkgdir}/usr/share/doc/${_name}/README" # install LICENSE install -Dm644 "${srcdir}/usr/share/doc/httm/copyright" "${pkgdir}/usr/share/licenses/${_name}/LICENSE" }