diff options
Diffstat (limited to 'development/lepton-eda/lepton-eda.SlackBuild')
-rw-r--r-- | development/lepton-eda/lepton-eda.SlackBuild | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/development/lepton-eda/lepton-eda.SlackBuild b/development/lepton-eda/lepton-eda.SlackBuild index adb7a22f89..d738b84a4d 100644 --- a/development/lepton-eda/lepton-eda.SlackBuild +++ b/development/lepton-eda/lepton-eda.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for lepton-eda -# Copyright 2019 dmn <graahnul.grom@gmail.com>, Russia +# Copyright 2019-2022 dmn <graahnul.grom@gmail.com>, Russia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=lepton-eda -VERSION=${VERSION:-1.9.9} +VERSION=${VERSION:-1.9.18} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -78,21 +85,16 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ --disable-update-xdg-database \ --infodir=/usr/info \ - --build=$ARCH-slackware-linux - -# gschemdoc.scm file must be regenerated by make to substitute -# the @docdir@ (set by the --docdir configure option): -# -rm -vf schematic/scheme/gschem/gschemdoc.scm + --build=$ARCH-slackware-linux \ + --enable-guild make make install DESTDIR=$PKG -# remove *.la files: -# -rm -vf $PKG/usr/lib${LIBDIRSUFFIX}/*.la +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -111,4 +113,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |