aur/addon-sdk.install
Johannes Dewender cca83a7c55 addon-sdk: use "true" as browser
DISPLAY= keeps graphic browsers from starting, but not lynx & co.
"true" just returns success, which is what we need here.

Also: updated stabilisation to 1.7b1 a while ago..


git-svn-id: http://svn.kraehen.org/aur@115 04e22907-73ef-438a-a52f-a971dc6d3b47
2012-04-18 06:43:16 +00:00

35 lines
777 B
Bash

post_install() {
cd /opt/addon-sdk-git
. bin/activate
BROWSER=true cfx docs
deactivate
/bin/cat <<EOF
Tip: you should add this alias in your bash or zsh rc, to easily activate
the Addon SDK:
alias addon-sdk="cd /opt/addon-sdk-git && source bin/activate; cd -"
EOF
}
post_upgrade() {
cd /opt/addon-sdk-git
. bin/activate
BROWSER=true cfx docs
deactivate
/bin/cat <<EOF
Tip: you should add this alias in your bash or zsh rc, to easily activate
the Addon SDK:
alias addon-sdk="cd /opt/addon-sdk-git && source bin/activate; cd -"
EOF
}
pre_remove() {
cd /opt/addon-sdk-git/python-lib
rm -f *.pyc */*.pyc cuddlefish/docs/*.pyc
cd /opt/addon-sdk-git/doc
rm -f index.html status.md5
rm -rf dev-guide packages
}
# vim:set ts=2 sw=2 ft=sh et: