diff options
author | Fernando Lopez Jr | 2023-04-21 04:47:04 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2023-04-22 06:38:31 +0200 |
commit | 0e109e3a519d101bfc325cbe80ef124c1aaef49c (patch) | |
tree | 803a0176d62fe7205bebd1a3b1ecb0b0dfae11b6 /development/kicad/kicad.SlackBuild | |
parent | 6109f52dd05897a808d0d78993f0fd7d971d590f (diff) | |
download | slackbuilds-0e109e3a519d101bfc325cbe80ef124c1aaef49c.tar.gz |
development/kicad: Updated for version 7.0.2.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/kicad/kicad.SlackBuild')
-rw-r--r-- | development/kicad/kicad.SlackBuild | 41 |
1 files changed, 15 insertions, 26 deletions
diff --git a/development/kicad/kicad.SlackBuild b/development/kicad/kicad.SlackBuild index 7e1f5308e2..aaa89552d9 100644 --- a/development/kicad/kicad.SlackBuild +++ b/development/kicad/kicad.SlackBuild @@ -3,7 +3,8 @@ # Slackware build script for KiCad # Open-Source EDA Suite -# Copyright 2019 Fernando Lopez Jr. <fernando.lopezjr@gmail.com> +# Copyright 2019-2023 Fernando Lopez Jr. <fernando.lopezjr@gmail.com> +# Copyright 2023 Steven Voges <Oregon, USA> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,12 +24,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Revision date: 2019/Jun/02 +# Revision date: 2023/Apr/19 cd $(dirname $0) ; CWD=$(pwd) PRGNAM=kicad -VERSION=${VERSION:-5.1.9} +VERSION=${VERSION:-7.0.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -41,9 +42,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -54,16 +52,16 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686 -std=c++11" + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686 -std=c++11" + SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC -std=c++11" + SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" else - SLKCFLAGS="-O2 -std=c++11" + SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi @@ -82,31 +80,20 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Additional notes: -# -# - wxWidgets and wxPython use different toolkits (gtk2 vs (gtk2-unicode)). It -# will result in a broken build. Please either install wxPython built using -# gtk2 or add '-DKICAD_SCRIPTING_WXPYTHON=OFF' to cmake parameters to disable -# wxPython support. - mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld" \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ -DKICAD_DOCS=/usr/doc/$PRGNAM-$VERSION \ -DKICAD_PLUGINS=/usr/lib${LIBDIRSUFFIX}/$PRGNAM/plugins \ - -DKICAD_STABLE_VERSION=ON \ - -DKICAD_SKIP_BOOST=ON \ - -DKICAD_SCRIPTING=ON \ - -DKICAD_SCRIPTING_MODULES=ON \ -DKICAD_SCRIPTING_WXPYTHON=ON \ - -DKICAD_USE_SPICE=ON \ - -DKICAD_USE_OCC=ON \ - -DKICAD_USE_OCE=OFF \ + -DKICAD_USE_EGL=ON \ -DCMAKE_BUILD_TYPE=Release .. - make VERBOSE=1 + make make install DESTDIR=$PKG cd .. @@ -114,7 +101,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS.txt *.md LICENSE* \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |