# Maintainer: Gavin Yancey # Contributor: Timofey Titovets pkgname=bees pkgver=0.6.4 pkgrel=1 pkgdesc="Best-Effort Extent-Same, a btrfs deduplicator daemon" arch=('x86_64') url="https://github.com/Zygo/bees" license=('GPL3') depends=() makedepends=('git' 'markdown' 'btrfs-progs' 'systemd') source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/Zygo/bees/archive/v${pkgver}.tar.gz") sha256sums=('da6c50f433a2bd6b7e26e37733de44554d8e9ed554ee9dea0d2e66d1ff820e0d') build() { cd "${srcdir}/${pkgname}-${pkgver}" make BEES_VERSION="${pkgver}-${pkgrel}" make scripts BEES_VERSION="${pkgver}-${pkgrel}" } package() { cd "${srcdir}/${pkgname}-${pkgver}" make install DESTDIR="${pkgdir}" BEES_VERSION="${pkgver}-${pkgrel}" mkdir -p "${pkgdir}/usr/bin/" if [ -f "${pkgdir}/usr/sbin/beesd" ]; then mv -v "${pkgdir}/usr/sbin/beesd" "${pkgdir}/usr/bin/beesd" fi if egrep "${srcdir}|${pkgdir}" "${pkgdir}/usr/bin/beesd"; then exit 1 fi find ${pkgdir} -empty -delete -print }