_pkgname=sh64l-unknown-linux-gnu-binutils-multilib post_install() { linktools set $_pkgname linktools update binutils } post_upgrade() { post_install } pre_remove() { [[ $_pkgname == $(linktools check) ]] && { linktools unset } }