updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / avr8-burn-o-mat / avr8-burn-o-mat.install
blob6cdfd3062541f667a0799a9a08373da000f42ca1
1 _pkgname=AVR8-Burn-O-Mat
3 post_install()
6         if [ -h /usr/bin/avr8-burn-o-mat ] 
7         then
8                 rm -f /usr/bin/avr8-burn-o-mat || return 1
9         fi
10         
11         echo -e "#!/bin/bash\ncd /opt/AVR8-Burn-O-Mat\njava -jar AVR8_Burn_O_Mat.jar" > /usr/bin/avr8-burn-o-mat || return 1
12         chmod +x /usr/bin/avr8-burn-o-mat || return 1
14         echo -e "\n>>> Make sure that the path to avrdude program and the avrdude configuration file is correct."
15         echo -e ">>> Type 'whereis avrdude' to find out where these files are."
16         echo -e ">>> Run program by 'avr8-burn-o-mat' or from program menu (development section)."
20 post_upgrade()
22   post_install $1
26 post_remove() 
28         if [ -h /usr/bin/avr8-burn-o-mat ] 
29         then
30                 rm -f /usr/bin/avr8-burn-o-mat || return 1
31         fi