# Distributed under the terms of the GNU General Public License v2 # Copyright 2019 Gluzskiy Alexandr require github [ user=Zygo tag=v${PV} ] export_exlib_phases src_prepare src_install SLOT="0" LICENCES="GPL-3" DEPENDENCIES=" build+run: sys-fs/btrfs-progs run: sys-apps/util-linux " bees_src_prepare() { edo sed -e "s/pkg-config/$(exhost --target)-pkg-config/g" -i Makefile } bees_src_install() { default edo mkdir -p "${IMAGE}/usr/$(exhost --target)/bin" edo mv "${IMAGE}/usr/lib/bees/bees" "${IMAGE}/usr/$(exhost --target)/bin/" edo rm -rf "${IMAGE}/usr/lib" edo mv "${IMAGE}/usr/sbin/beesd" "${IMAGE}/usr/$(exhost --target)/bin/" edo rmdir "${IMAGE}/usr/sbin" }