blob: c0b5a8a6643471a3a86fc979add8b77e4b9a1fcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# 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 {} \;
}
|