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