Commit f9ea86085aeb7e4eca84cba790ee4fe477634880
- Diff rendering mode:
- inline
- side by side
distributions/Debian_general
(95 / 0)
|   | |||
| 1 | #!/bin/bash | ||
| 2 | # ============================================================================== | ||
| 3 | # This program is free software; you can redistribute it and/or modify | ||
| 4 | # it under the terms of the GNU General Public License as published by | ||
| 5 | # the Free Software Foundation; version 3 of the License. | ||
| 6 | # | ||
| 7 | # This program is distributed in the hope that it will be useful, | ||
| 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | # GNU General Public License for more details. | ||
| 11 | # ============================================================================== | ||
| 12 | # (C) 2009 Christian Beuschel <chris109(at)web.de> | ||
| 13 | |||
| 14 | # Installation | ||
| 15 | |||
| 16 | echo " " | ||
| 17 | |||
| 18 | echo -n "Copying files ..." | ||
| 19 | |||
| 20 | # Has the user used the regular install.sh script which called this file or | ||
| 21 | # has he executed this script directly? | ||
| 22 | if [ -z "$INSTDIR" ]; then | ||
| 23 | echo "Error: Don't use this file directly, use install.sh instead!" | ||
| 24 | exit -1 | ||
| 25 | fi | ||
| 26 | |||
| 27 | mkdir $INSTDIR | ||
| 28 | cp -r ./files/* $INSTDIR/ | ||
| 29 | chmod +x $INSTDIR/bin/pappi | ||
| 30 | chmod +x $INSTDIR/bin/uninstall | ||
| 31 | ln -s $INSTDIR/bin/pappi /usr/local/bin/pappi | ||
| 32 | |||
| 33 | echo '... done' | ||
| 34 | echo " " | ||
| 35 | |||
| 36 | echo -n "Registering mime-types ..." | ||
| 37 | |||
| 38 | if [ ! -d "$MIMEDB" ]; then | ||
| 39 | mkdir -p $MIMEDB | ||
| 40 | fi | ||
| 41 | if [ ! -d "$APPDB" ]; then | ||
| 42 | mkdir -p $APPDB | ||
| 43 | fi | ||
| 44 | |||
| 45 | # Does the Mime-File already exist? remove! | ||
| 46 | if [ -f "$MIMEDB/$MIMEFILE" ]; then | ||
| 47 | echo "Mime file already exist. removing..." | ||
| 48 | rm "$MIMEDB/$MIMEFILE" | ||
| 49 | fi | ||
| 50 | |||
| 51 | echo '<?xml version="1.0" encoding="UTF-8"?>' >> $MIMEDB'/'$MIMEFILE | ||
| 52 | |||
| 53 | echo '<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">' >> $MIMEDB'/'$MIMEFILE | ||
| 54 | echo ' <mime-type type="application/x-personal-application-package">' >> $MIMEDB'/'$MIMEFILE | ||
| 55 | echo ' <comment>Personal Application Package</comment>' >> $MIMEDB'/'$MIMEFILE | ||
| 56 | echo ' <glob pattern="*.pappp"/>' >> $MIMEDB'/'$MIMEFILE | ||
| 57 | echo ' <generic-icon name="package-x-generic"/>' >> $MIMEDB'/'$MIMEFILE | ||
| 58 | echo ' </mime-type>' >> $MIMEDB'/'$MIMEFILE | ||
| 59 | |||
| 60 | echo ' <mime-type type="application/x-personal-application-store-trust-file">' >> $MIMEDB'/'$MIMEFILE | ||
| 61 | echo ' <comment>Personal Application Store Trust File</comment>' >> $MIMEDB'/'$MIMEFILE | ||
| 62 | echo ' <glob pattern="*.pappst"/>' >> $MIMEDB'/'$MIMEFILE | ||
| 63 | echo ' <generic-icon name="package-x-generic"/>' >> $MIMEDB'/'$MIMEFILE | ||
| 64 | echo ' </mime-type>' >> $MIMEDB'/'$MIMEFILE | ||
| 65 | |||
| 66 | echo '</mime-info>' >> $MIMEDB'/'$MIMEFILE | ||
| 67 | |||
| 68 | if [ ! -f $APPDB/$APPLIST ]; then | ||
| 69 | echo "[Default Applications]" > $APPDB/$APPLIST | ||
| 70 | fi | ||
| 71 | echo "application/x-personal-application-package=pappi_install.desktop" >> $APPDB/$APPLIST | ||
| 72 | echo "application/x-personal-application-store-trust-file=pappi_trust.desktop" >> $APPDB/$APPLIST | ||
| 73 | |||
| 74 | echo '[Desktop Entry]' >> $APPDB/$APPLINIK_I | ||
| 75 | echo 'Version=1.0' >> $APPDB/$APPLINIK_I | ||
| 76 | echo 'Encoding=UTF-8' >> $APPDB/$APPLINIK_I | ||
| 77 | echo 'Name=Personal App Installer' >> $APPDB/$APPLINIK_I | ||
| 78 | echo 'Terminal=false' >> $APPDB/$APPLINIK_I | ||
| 79 | echo 'Exec=/opt/pappi/bin/pappi -i %U' >> $APPDB/$APPLINIK_I | ||
| 80 | echo 'Icon=/opt/pappi/icons/pappi_48.png' >> $APPDB/$APPLINIK_I | ||
| 81 | echo 'Type=Application' >> $APPDB/$APPLINIK_I | ||
| 82 | |||
| 83 | |||
| 84 | update-mime-database $MIMEBASE | ||
| 85 | |||
| 86 | echo '... done' | ||
| 87 | echo " " | ||
| 88 | |||
| 89 | echo "Installing dependencies ..." | ||
| 90 | |||
| 91 | apt-get -y install uae wine dosbox zenity | ||
| 92 | |||
| 93 | echo '... done' | ||
| 94 | |||
| 95 | echo 'Installation of pappi complete.' |
distributions/Debian_lenny
(17 / 0)
|   | |||
| 1 | #!/bin/bash | ||
| 2 | # ============================================================================== | ||
| 3 | # This program is free software; you can redistribute it and/or modify | ||
| 4 | # it under the terms of the GNU General Public License as published by | ||
| 5 | # the Free Software Foundation; version 3 of the License. | ||
| 6 | # | ||
| 7 | # This program is distributed in the hope that it will be useful, | ||
| 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | # GNU General Public License for more details. | ||
| 11 | # ============================================================================== | ||
| 12 | # (C) 2010 Maximilian Seesslen <mes(at)seesslen.net> | ||
| 13 | |||
| 14 | # Installation | ||
| 15 | |||
| 16 | # Just use the general Debian installer | ||
| 17 | source "$INSTALLER_DIR/Debian_general" |
distributions/Debian_testing
(19 / 0)
|   | |||
| 1 | #!/bin/bash | ||
| 2 | # ============================================================================== | ||
| 3 | # This program is free software; you can redistribute it and/or modify | ||
| 4 | # it under the terms of the GNU General Public License as published by | ||
| 5 | # the Free Software Foundation; version 3 of the License. | ||
| 6 | # | ||
| 7 | # This program is distributed in the hope that it will be useful, | ||
| 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | # GNU General Public License for more details. | ||
| 11 | # ============================================================================== | ||
| 12 | # (C) 2010 Maximilian Seesslen <mes(at)seesslen.net> | ||
| 13 | |||
| 14 | # Installation | ||
| 15 | |||
| 16 | # Just use the general Debian installer | ||
| 17 | # BTW: lsb_release seems to show the actual stable release code on a testing | ||
| 18 | # installation, not the "next" stable. | ||
| 19 | source "$INSTALLER_DIR/Debian_general" |

