logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

bashrc (492B)


  1. #!/bin/bash
  2. if [ "${EBUILD_PHASE}" == "postinst" ] || [ "${EBUILD_PHASE}" == "postrm" ]; then
  3. echo ":: Calling makewhatis"
  4. makewhatis -Q -T utf8 ${MANPATH//:/ }
  5. fi
  6. if [ "${EBUILD_PHASE}" == "prepare" ]; then
  7. if grep -q -- '-bin$' <<<"${PN}"; then
  8. echo ":: *-bin package, not deblobbing"
  9. elif grep -q -- "${PN}" /etc/portage/go-deblob.reject; then
  10. echo ":: package is in /etc/portage/go-deblob.reject, not deblobbing"
  11. else
  12. go-deblob -e 'test*' -e '*/test*' -d "${WORKDIR}"
  13. fi
  14. fi