mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
development/eagle: Updated for version 7.2.0 + new maintainer.
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
This commit is contained in:
parent
444e1342b0
commit
8b610bdb19
4 changed files with 41 additions and 56 deletions
|
@ -1,3 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for eagle (binary repackaging)
|
||||
|
||||
# Copyright 2008 Kyle Guinn <elyk03@gmail.com>
|
||||
# Copyright 2008,2015 Kyle Guinn <elyk03@gmail.com>, USA
|
||||
# Copyright 2010,2013 Niels Horn, Rio de Janeiro, RJ, Brazil
|
||||
# All rights reserved.
|
||||
#
|
||||
|
@ -12,51 +12,37 @@
|
|||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Revision date: 2013/03/27
|
||||
|
||||
PRGNAM="eagle"
|
||||
VERSION=${VERSION:-"6.4.0"}
|
||||
PRGNAM=eagle
|
||||
VERSION=${VERSION:-7.2.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
ARCH=i486
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ ! "$ARCH" = "i486" ]; then
|
||||
echo "Sorry, only i486 supported"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Documentation is distributed for English, German and Chinese. Due to the size
|
||||
# of the documentation, only include one language.
|
||||
LANG=${LANG:-"en"}
|
||||
if [ "$LANG" = "de" ]; then
|
||||
DOCS="README_de UPDATE_de library_de.txt license_de.txt manual_de.pdf tutorial_de.pdf elektro-tutorial.pdf"
|
||||
DOCS="README_de UPDATE_de library_de.txt license_de.txt manual_de.pdf tutorial_de.pdf eagle.dtd connect-device-split-symbol-de.pdf generate-3d-idf-data_de.pdf make-symbol-device-package-bsdl-2011-de.pdf elektro-tutorial.pdf"
|
||||
elif [ "$LANG" = "zh" ]; then
|
||||
DOCS="README_en UPDATE_en library_en.txt license_en.txt manual_zh.pdf tutorial_zh.pdf"
|
||||
DOCS="README_en UPDATE_en library_en.txt license_en.txt manual_zh.pdf tutorial_zh.pdf eagle.dtd"
|
||||
else
|
||||
DOCS="README_en UPDATE_en library_en.txt license_en.txt manual_en.pdf tutorial_en.pdf"
|
||||
DOCS="README_en UPDATE_en library_en.txt license_en.txt manual_en.pdf tutorial_en.pdf eagle.dtd connect-device-split-symbol-en.pdf generate-3d-idf-data_en.pdf make-symbol-device-package-bsdl-2011-en.pdf EagleIDFExporterInstructions.pdf layer-setup_designrules.pdf"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -71,31 +57,21 @@ chown -R root:root $PKG
|
|||
touch $PKG/opt/$PRGNAM-$VERSION/bin/$PRGNAM.key
|
||||
chmod 0666 $PKG/opt/$PRGNAM-$VERSION/bin/$PRGNAM.key
|
||||
|
||||
# Some versions of EAGLE have a graphics bug that results in corruption of the
|
||||
# displayed window, particularly affecting the display of trees and lists.
|
||||
# This is due to a conflict with compositing. The quickest fix is to set an
|
||||
# environment variable (XLIB_SKIP_ARGB_VISUALS) before running EAGLE. The fix
|
||||
# may not apply to the latest version of EAGLE, but it doesn't hurt to leave
|
||||
# it in. See http://www.cadsoft.de/faq.htm#07041701 for details.
|
||||
mkdir -p $PKG/usr/bin
|
||||
cat > $PKG/usr/bin/$PRGNAM << EOF
|
||||
#!/bin/sh
|
||||
XLIB_SKIP_ARGB_VISUALS=1
|
||||
export XLIB_SKIP_ARGB_VISUALS
|
||||
exec /opt/$PRGNAM-$VERSION/bin/$PRGNAM "\$@"
|
||||
EOF
|
||||
chmod +x $PKG/usr/bin/$PRGNAM
|
||||
ln -s /opt/$PRGNAM-$VERSION/bin/$PRGNAM $PKG/usr/bin/eagle
|
||||
|
||||
mkdir -p $PKG/usr/share/icons/hicolor/16x16/apps
|
||||
mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps
|
||||
ln -s /opt/$PRGNAM-$VERSION/bin/eagleicon16.png $PKG/usr/share/icons/hicolor/16x16/apps/$PRGNAM.png
|
||||
ln -s /opt/$PRGNAM-$VERSION/bin/eagleicon50.png $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png
|
||||
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
|
||||
|
||||
# Move any man pages to the proper location
|
||||
mkdir -p $PKG/usr/man/man1
|
||||
mv $PKG/opt/$PRGNAM-$VERSION/doc/*.1 $PKG/usr/man/man1
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
mkdir -p $PKG/usr/share/{applications,pixmaps}
|
||||
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
|
||||
cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} +
|
||||
|
||||
# Move the documentation to the proper location
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="eagle"
|
||||
VERSION="6.4.0"
|
||||
VERSION="7.2.0"
|
||||
HOMEPAGE="http://www.cadsoft.de/"
|
||||
DOWNLOAD="ftp://ftp.cadsoft.de/eagle/program/6.4/eagle-lin-6.4.0.run"
|
||||
MD5SUM="5e0b4f2864bdbc1677f2897c69ad20a0"
|
||||
DOWNLOAD="http://web.cadsoft.de/ftp/eagle/program/7.2/eagle-lin-7.2.0.run"
|
||||
MD5SUM="31abdc995fe39946cb4624716966f1c7"
|
||||
DOWNLOAD_x86_64="UNSUPPORTED"
|
||||
MD5SUM_x86_64="UNSUPPORTED"
|
||||
REQUIRES=""
|
||||
MAINTAINER="Niels Horn"
|
||||
EMAIL="niels.horn@gmail.com"
|
||||
MAINTAINER="Kyle Guinn"
|
||||
EMAIL="elyk03@gmail.com"
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB |
Loading…
Reference in a new issue