diff options
Diffstat (limited to 'graphics/qcad')
-rw-r--r-- | graphics/qcad/README | 15 | ||||
-rw-r--r-- | graphics/qcad/qcad.SlackBuild | 24 | ||||
-rw-r--r-- | graphics/qcad/qcad.info | 6 |
3 files changed, 27 insertions, 18 deletions
diff --git a/graphics/qcad/README b/graphics/qcad/README index cafcd557b9..a41943a70b 100644 --- a/graphics/qcad/README +++ b/graphics/qcad/README @@ -1,12 +1,11 @@ qcad (Open Source CAD) -QCAD is a free, open source application for computer aided drafting (CAD) -in two dimensions (2D). With QCAD you can create technical drawings such -as plans for buildings, interiors, mechanical parts or schematics and -diagrams. QCAD works on Windows, Mac OS X and Linux. +QCAD is a free, open source application for computer aided drafting +(CAD) in two dimensions (2D). With QCAD you can create technical +drawings such as plans for buildings, interiors, mechanical parts or +schematics and diagrams. QCAD works on Windows, Mac OS X and Linux. -Optional dependencies: libqsqlpsql and qt5 +To build qt4 version of qcad (requires a qt4 version library installed) +run the SlackBuild with QT5=no: -To build qt5 version of qcad, run the SlackBuild with QT5=yes: - - # QT5=yes ./qcad.SlackBuild + # QT5=no ./qcad.SlackBuild diff --git a/graphics/qcad/qcad.SlackBuild b/graphics/qcad/qcad.SlackBuild index efe3561212..5fb98375aa 100644 --- a/graphics/qcad/qcad.SlackBuild +++ b/graphics/qcad/qcad.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for qcad @@ -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=qcad -VERSION=${VERSION:-3.23.0.2} +VERSION=${VERSION:-3.26.2.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -69,9 +79,9 @@ 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 {} \; -# Build with Qt5/Qt4. Default is Qt4. -if [ "${QT5:-no}" == "yes" ]; then - sed -i 's|$${QT_VERSION}|5.9.5|' src/3rdparty/3rdparty.pro +# Build with Qt5/Qt4. Default is Qt5. +if [ "${QT5:-yes}" == "yes" ]; then + sed -i 's|$${QT_VERSION}|5.15.2|' src/3rdparty/3rdparty.pro qmake-qt5 QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCFLAGS" \ CONFIG+=release -o Makefile $PRGNAM.pro QTDIRECTORY="qt5" @@ -145,4 +155,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 diff --git a/graphics/qcad/qcad.info b/graphics/qcad/qcad.info index 1f498dd1a9..6194cb61ac 100644 --- a/graphics/qcad/qcad.info +++ b/graphics/qcad/qcad.info @@ -1,8 +1,8 @@ PRGNAM="qcad" -VERSION="3.23.0.2" +VERSION="3.26.2.0" HOMEPAGE="https://www.qcad.org/en/" -DOWNLOAD="https://github.com/qcad/qcad/archive/v3.23.0.2/qcad-3.23.0.2.tar.gz" -MD5SUM="566c97bfe2dbe39aaf441a0b23381054" +DOWNLOAD="https://github.com/qcad/qcad/archive/v3.26.2.0/qcad-3.26.2.0.tar.gz" +MD5SUM="a94cff2853489352c38d8e3d6f1e6edc" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |