# Description: Easily Applicable Graphical Layout Editor # URL: http://www.autodesk.com/products/eagle # Maintainer: Erich Eckner, crux at eckner dot net # Depends on: desktop-file-utils shared-mime-info name=eagle version=9.6.1 release=1 source=("https://eagle-updates.circuits.io/downloads/${version//./_}/Autodesk_EAGLE_${version}_English_Linux_64bit.tar.gz" "http://download.autodesk.com/us/FY19/Suites/LSA/en-US/lsa.html" "$name.desktop" "$name.xml") build() { # copy files to /opt install -dm755 "$PKG"/{opt,usr/bin} cp -r $name-$version "$PKG/opt/$name" ln -sf "/opt/$name/eagle" "$PKG/usr/bin/eagle" # provide desktop integration install -Dm644 "$name.desktop" \ "$PKG/usr/share/applications/$name.desktop" install -Dm644 "$name.xml" \ "$PKG/usr/share/mime/packages/$name.xml" install -Dm644 "$PKG/opt/$name/bin/eagle-logo.png" \ "$PKG/usr/share/pixmaps/eagle.png" # copy man page install -Dm644 "$PKG"/opt/$name/doc/$name.1 \ "$PKG/usr/share/man/man1/$name.1" # Remove provided X libraries. They cause issues with current mesa and the system libraries seem to work fine. rm "$PKG"/opt/$name/lib/libx* rm "$PKG"/opt/$name/lib/libX* # Fix permissions (necessary since 8.5.2) find "$PKG" -perm 750 -exec chmod 755 {} \; find "$PKG" -perm 700 -exec chmod 755 {} \; find "$PKG" -perm 640 -exec chmod 644 {} \; find "$PKG" -perm 600 -exec chmod 644 {} \; }