Last active
February 11, 2016 09:27
-
-
Save z3ntu/f7eaf47c73d23bec430b to your computer and use it in GitHub Desktop.
Updated PKGBUILD for PacketTracer 6.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Maintainer: Runnytu < runnytu at gmail dot com > | |
| # OldMaintainer: Alexey Kharlamov <[email protected]> | |
| # Contributor: David Dufberg Tøttrup <david at dufberg dot se> | |
| # Contributor: Jordi De Groof <jordi(dot)degroof(at)gmail(dot)com> | |
| # Contributor: pyther <[email protected]> | |
| # Contributor: Luca Weiss <[email protected]> | |
| pkgname=packettracer | |
| pkgver=6.3 | |
| pkgrel=1 | |
| pkgdesc="Network design and emulation software for Cisco's Networking Academy instructors and students." | |
| arch=( 'i686' 'x86_64' ) | |
| depends_x86_64=('lib32-openssl' 'lib32-qt4' 'lib32-libpng') && makedepends_x86_64=('gcc-multilib') | |
| depends_i686=('qtwebkit' 'libpng') | |
| url="http://www.netacad.com/about-networking-academy/packet-tracer" | |
| license=('custom') | |
| source=( 'https://archive.org/download/PacketTracer63Linux/PacketTracer63_linux.tar.gz' 'packettracer' 'linguist' 'packettracer.sh') | |
| sha512sums=('cd66b6821e9b2fe93e77c45788ff4189ff39af75ad8f492168751c19dc872c501255a44d2324e9506717c839884ca2cbcb9f2e03c47c27e4e5ff2eeda7842ed9' | |
| '0cf78b00428e5a795a29704eacaef1dbf2f93e0758b1e8341c79839ecb699022f0b9d2ba0b9bdbf196ed362fc708ec347624ba7b29033b18f865df0e93c858d3' | |
| '2fe30ef63d29903addbe3042aa505e9b1497ce2abc935855c062de1e2582a66425f10844ad38309ad099805a58ed89e47e78c2a943fc45a87d809eb0dfae39a3' | |
| 'e264a4153bf2ef33fa9d3543f4fedd33740b1f3bd8c59fc9dd0d26caa843488704a8e68362e8ec7ff66f19d5a3dbb56912a09ac05bf18be1999f4bb18f262b38') | |
| # We don't want to strip anything from the static libraries | |
| # We want to keep all binaries orginal (Cisco is goofy) | |
| options=(!strip) | |
| install=pt.install | |
| package() { | |
| cd ${srcdir}/PacketTracer63 | |
| mkdir -p ${pkgdir}/opt/pt/{art,backgrounds,bin,extensions,help,LANGUAGES,lib,saves,sounds,templates} | |
| cp -r ./art/* ${pkgdir}/opt/pt/art | |
| cp -r ./backgrounds/* ${pkgdir}/opt/pt/backgrounds | |
| cp -r ./bin/* ${pkgdir}/opt/pt/bin | |
| cp -r ./extensions/* ${pkgdir}/opt/pt/extensions | |
| cp -r ./LANGUAGES/* ${pkgdir}/opt/pt/LANGUAGES | |
| cp -r ./saves/* ${pkgdir}/opt/pt/saves | |
| cp -r ./sounds/* ${pkgdir}/opt/pt/sounds | |
| cp -r ./templates/* ${pkgdir}/opt/pt/templates | |
| cp -r ./lib/* ${pkgdir}/opt/pt/lib | |
| # Help Files that are optinal uncomment to include them (55 MB) | |
| # cp -r ./help/* ${pkgdir}/opt/pt/help | |
| # Mime Info for PKA, PKT, PKZ | |
| install -D -m644 ./bin/Cisco-pka.xml ${pkgdir}/usr/share/mime/packages/Cisco-pka.xml | |
| install -D -m644 ./bin/Cisco-pkt.xml ${pkgdir}/usr/share/mime/packages/Cisco-pkt.xml | |
| install -D -m644 ./bin/Cisco-pkz.xml ${pkgdir}/usr/share/mime/packages/Cisco-pkz.xml | |
| rm ${pkgdir}/opt/pt/bin/Cisco-pka.xml | |
| rm ${pkgdir}/opt/pt/bin/Cisco-pkt.xml | |
| rm ${pkgdir}/opt/pt/bin/Cisco-pkz.xml | |
| # Install Mimetype Icons | |
| install -D -m644 ./art/pka.png ${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-pka.png | |
| install -D -m644 ./art/pkt.png ${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-pkt.png | |
| install -D -m644 ./art/pkz.png ${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-pkz.png | |
| # EULA | |
| install -D -m644 eula.txt ${pkgdir}/usr/share/licenses/$pkgname/eula.txt | |
| # Shell script to start PT and tell it to use included qt files | |
| # Arch's QT causes PT to crash when saving! | |
| install -D -m755 ${srcdir}/packettracer ${pkgdir}/opt/pt/packettracer | |
| # Symlink to /usr/bin | |
| mkdir -p ${pkgdir}/usr/bin/ | |
| ln -s /opt/pt/packettracer ${pkgdir}/usr/bin/packettracer | |
| # Improved version of Cisco's linguist script | |
| install -D -m755 ${srcdir}/linguist ${pkgdir}/opt/pt/linguist | |
| # Add enviroment variable | |
| install -D -m755 ${srcdir}/packettracer.sh ${pkgdir}/etc/profile.d/packettracer.sh | |
| # Desktop File | |
| install -D -m644 ./bin/Cisco-PacketTracer.desktop ${pkgdir}/usr/share/applications/Cisco-PacketTracer.desktop | |
| sed 's/\/usr\/local\/PacketTracer6/\/opt\/pt/' -i ${pkgdir}/usr/share/applications/Cisco-PacketTracer.desktop | |
| rm ${pkgdir}/opt/pt/bin/Cisco-PacketTracer.desktop | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment