summaryrefslogtreecommitdiff
path: root/manualPorts/eagle/Pkgfile
blob: c22bc7de0bbc19a753fb585f1b58dd76b5fcb8c1 (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
# Description: Easily Applicable Graphical Layout Editor
# URL: http://cadsoft.de/
# Maintainer: Erich Eckner, crux at eckner dot net
# Contriubtor: Jose V Beneyto, sepen at crux dot nu
# Packager: Jose V Beneyto, sepen at crux dot nu
# Depends on: xorg-libxrandr, zlib, libjpeg-turbo, xorg-libxrender, xorg-libxcursor, freetype, expat, fontconfig, xorg-libxau, libpng, xorg-libxi, xorg-libxft

name=eagle
version=7.7.0
release=1
source=(ftp://ftp.cadsoft.de/$name/program/${version%.*}/$name-lin64-$version.run)

build() {
  install -d $PKG/usr/{bin,share/man/man1}
  chmod +x $name-lin64-$version.run
  ./$name-lin64-$version.run $PKG/usr/share
  mv $PKG/usr/share/{$name-$version,$name}
  (
    cd $PKG/usr/bin
    ln -s ../share/$name/bin/$name $name
  )
  mv $PKG/usr/share/$name/doc/$name.1 $PKG/usr/share/man/man1/
  rm $PKG/usr/share/eagle/doc/{README,UPDATE}_* $PKG/usr/share/eagle/lbr/ChangeLog
  chmod 0755 $PKG/usr/bin/$name
  chown -R root:root $PKG/
  chmod -R ug-s $PKG/
}