Cisco has released Packet Tracer 8. This is what I've done so far in PKGBUILD:
pkgver=8.0.0 pkgrel=0 ... source=('local://PacketTracer_800_amd64_build212_final.deb' ... sha512sums=('3a56a369ae2028fa866ad2e27bbe07d1bee14fd0f16f82790c5f7ad9b7a7c3fc39b4b88d52aae652dccf1a21a3ae0f433e8b586ace4f48dfab7271524c5d163c' '09d07ec95712f562bb9217b40a0a04cbb16e42523801b62180050326d67d3592f2ce92444440a10a6e94951c6cf53e27fb360395ef5f3732c71edc51e6a85726' 'a72fca826331a2c201e04c7eca727c6f73306cf4c26f0f6608896da345780bef248ed2be285e42c8aeacea0f6968ab78a7bc0d2bb8f60c544f5eb47f56dab5bb' ... #sed 's/\/opt\/pt/\/opt\/packettracer/' -i "${pkgdir}/opt/packettracer/bin/Cisco-PacketTracer.desktop" sed 's/\/opt\/pt/\/opt\/packettracer/' -i "${pkgdir}/usr/share/applications/cisco-pt.desktop" sed 's/\/opt\/pt/\/opt\/packettracer/' -i "${pkgdir}/usr/share/applications/cisco-ptsa.desktop" sed -e "\$aCategories=Application;Network;" -i "${pkgdir}/usr/share/applications/cisco-pt.desktop" sed -e "\$aCategories=Application;Network;" -i "${pkgdir}/usr/share/applications/cisco-ptsa.desktop" sed -e "\$aNoDisplay=true" -i "${pkgdir}/usr/share/applications/cisco-ptsa.desktop" ...
packettracer.install:
post_install() { xdg-icon-resource forceupdate --theme hicolor &> /dev/null xdg-desktop-menu install /usr/share/applications/cisco-pt.desktop xdg-desktop-menu install /usr/share/applications/cisco-ptsa.desktop update-mime-database /usr/share/mime gtk-update-icon-cache --force /usr/share/icons/gnome }
post_upgrade() { post_install }
post_remove() { xdg-icon-resource forceupdate --theme hicolor &> /dev/null xdg-desktop-menu uninstall /usr/share/applications/cisco-pt.desktop xdg-desktop-menu uninstall /usr/share/applications/cisco-ptsa.desktop update-mime-database /usr/share/mime gtk-update-icon-cache --force /usr/share/icons/gnome }
Can everyone please confirm that the new PKGBUILD and packettracer.install works? Download the .deb file from the Network Academy's website (once you log in, of course) and put it in the packettracer directory where the PKGBUILD is located.
Regards, Grayson Peddie
Pinned Comments
runnytu commented on 2020-01-04 16:58 (UTC) (edited on 2020-01-04 16:59 (UTC) by runnytu)
To install all versions of packettracer except 7.2.2, follow this guidelines: 1. Download the snapshot from this AUR. 2. Tar -zxf the packettracer.tar.gz snapshot (it creates the dir packettracer/ with the PKGBUILD on it). 3. Download the latest packettracer tarball from your Netacad account and copy it into the packettracer/ dir. 4. Create the package with the command makepkg (it creates a packettracer.pkg.tar.xz). 5. Install the package with either makepkg -i or sudo pacman -U packettracer.pkg.tar.xz.
Packettracer 7.2.2 are auto installable via run file, download it from netacad webpage and run it, you don't need this package.