LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-26-2018, 11:03 AM   #1081
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514

Could we get Jackd audio support in 15?
 
2 members found this post helpful.
Old 04-26-2018, 11:06 AM   #1082
Ne01eX
Member
 
Registered: Mar 2018
Location: Ekaterinburg region, Ural, Russian Federation
Distribution: Slackware, RTK GNU/Linux
Posts: 173

Rep: Reputation: 22
Lightbulb

0. I did not find any records in the libwmf documentation, - why do I need to named some fonts (Numbus Sans L, Numbus Roman No9 L, Numbus Mono L, Standart Symbols L) instead others (Helvetica, Times, Courier, Symbol)?

Perhaps this is an old dirty hack for old HP printers? (I have not printed anything on the printer for about five years, and so I do not remember).

1. In any case, these are old fonts without Cyrillic support. I suggest using the default system fonts instead of them from the set ghostscipt-fonts-std. They are newer and better.

2. I suggest using the same for our branches names for packages with documentation (libwmf-doc instead of libwmf-docs)


I propose to look at my libwmf.SlackBuild for more details.

Best regards, Standartenführer S and R, Aleksandr "Ne01eX" Sayfulin.

Attached Files
File Type: txt libwmf.SlackBuild.txt (9.0 KB, 15 views)
 
Old 04-26-2018, 12:37 PM   #1083
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,204

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
openvpn-2.4.6:

https://community.openvpn.net/openvp...gesInOpenvpn24
https://swupdate.openvpn.org/communi...n-2.4.6.tar.xz
 
1 members found this post helpful.
Old 04-27-2018, 03:05 AM   #1084
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,204

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
xfsprogs-4.16.0:

https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/
https://mirrors.edge.kernel.org/pub/...-4.16.0.tar.xz
 
1 members found this post helpful.
Old 04-27-2018, 04:55 AM   #1085
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 535

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally Posted by Ne01eX View Post

1. In any case, these are old fonts without Cyrillic support. I suggest using the default system fonts instead of them from the set ghostscipt-fonts-std. They are newer and better.

...

I propose to look at my libwmf.SlackBuild for more details.
A diff would be more easy to read.
The newest ps-fonts are provided by ghostscript-9.23 in slackware, however there are some incompatibilities regarding the original base35 fonts.

I cant't test at the moment, but for using ghostscipt-9.23 fonts, and looking at the arch buildscript, this seems more
reasonable:
Code:
--with-gsfontdir=/usr/share/ghostscript/9.23/Resource/Font/ \
--with-gsfontmap=/usr/share/ghostscript/9.23/Resource/Init/Fontmap.GS
 
Old 04-27-2018, 07:18 AM   #1086
Ne01eX
Member
 
Registered: Mar 2018
Location: Ekaterinburg region, Ural, Russian Federation
Distribution: Slackware, RTK GNU/Linux
Posts: 173

Rep: Reputation: 22
Lightbulb

ap/usbmuxd.SlackBuild:

Please, repost so that he puts it in his script:

Code:
# Install our own udev rule to prevent getting systemd'd without warning.
# Plus, the generated rule calls the wrong binary name anyway.
if [ ! -d "$PKG/lib/udev/rules.d" ]; then
    install -d -m 0755 $PKG/lib/udev/rules.d
    zcat $CWD/39-usbmuxd.rules.gz > $PKG/lib/udev/rules.d/39-usbmuxd.rules
fi
Best regards, Standartenführer S and R, Aleksandr "Ne01eX" Sayfulin.


Last edited by michaelk; 04-27-2018 at 02:37 PM.
 
Old 04-27-2018, 07:27 AM   #1087
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,204

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
nano-2.9.6:

https://www.nano-editor.org/news.php
https://www.nano-editor.org/dist/v2.9/nano-2.9.6.tar.xz
 
Old 04-27-2018, 07:29 AM   #1088
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by Ne01eX View Post
ap/usbmuxd.SlackBuild:

Please, repost so that he puts it in his script:

Code:
# Install our own udev rule to prevent getting systemd'd without warning.
# Plus, the generated rule calls the wrong binary name anyway.
if [ ! -d "$PKG/lib/udev/rules.d" ]; then
    install -d -m 0755 $PKG/lib/udev/rules.d
    zcat $CWD/39-usbmuxd.rules.gz > $PKG/lib/udev/rules.d/39-usbmuxd.rules
fi
Best regards, Standartenführer S and R, Aleksandr "Ne01eX" Sayfulin.

can you please stop with this? I ask you this as a personal courtesy as I find this term really offensive (my eyes hurt), thanks in advance!

Last edited by michaelk; 04-27-2018 at 02:38 PM.
 
5 members found this post helpful.
Old 04-27-2018, 10:38 AM   #1089
Ne01eX
Member
 
Registered: Mar 2018
Location: Ekaterinburg region, Ural, Russian Federation
Distribution: Slackware, RTK GNU/Linux
Posts: 173

Rep: Reputation: 22
Thumbs up

Quote:
Originally Posted by ponce View Post
can you please stop with this "führer" shit? I ask you this as a personal courtesy as I find this term really offensive (my eyes hurt), thanks in advance!
0. It's just a word. It is neither bad nor good. This word.

1. Well, I ask you for a courtesy for me: to repost my technical messages (both previous and future) for Patrick (I'm not sure he is reading my messages). Thanks in advance!
 
Old 04-27-2018, 10:42 AM   #1090
Ne01eX
Member
 
Registered: Mar 2018
Location: Ekaterinburg region, Ural, Russian Federation
Distribution: Slackware, RTK GNU/Linux
Posts: 173

Rep: Reputation: 22
Exclamation

Quote:
Originally Posted by franzen View Post
A diff would be more easy to read.
The newest ps-fonts are provided by ghostscript-9.23 in slackware, however there are some incompatibilities regarding the original base35 fonts.

I cant't test at the moment, but for using ghostscipt-9.23 fonts, and looking at the arch buildscript, this seems more
reasonable:
Code:
--with-gsfontdir=/usr/share/ghostscript/9.23/Resource/Font/ \
--with-gsfontmap=/usr/share/ghostscript/9.23/Resource/Init/Fontmap.GS
I wrote that the fonts that are bundled with libwmf are obsolete and are not needed. In my SlackBuild this is fixed. :-)
 
Old 04-27-2018, 10:42 AM   #1091
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Comrade Ne01eX, I understand your lack of knowledge in the national-socialist terminology, as may be expected from someone born as Russian and raised in Soviet Union, BUT please be aware that "Mein Führer" was the official calling of Adolf Hitler, also with a similar sense like "His Excellency"

However, please also note that in today German language "Mein Führer" is highly derogatorily; for example if you call this way your CEO while talking with your colleagues, has literally a sense similar with "that SoB who will end in misery, taking a poison pill together with his blood-related mistress, but not before dooming our company"

I know, I know, the Deutsche Sprache can be a bitch - better stay away of it, if you do not handle it properly...

Last edited by Darth Vader; 04-27-2018 at 12:02 PM.
 
3 members found this post helpful.
Old 04-27-2018, 11:32 AM   #1092
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,086

Rep: Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262
Gimp-2.10.0

Quote:
The long-awaited GIMP 2.10.0 is finally here! This is a huge release, which contains the result of 6 long years of work (GIMP 2.8 was released almost exactly 6 years ago!) by a small but dedicated core of contributors....
Release notes, https://www.gimp.org/news/2018/04/27...10-0-released/

The tarball, https://download.gimp.org/pub/gimp/v...2.10.0.tar.bz2

Last edited by cwizardone; 04-27-2018 at 11:41 AM.
 
5 members found this post helpful.
Old 04-27-2018, 11:58 AM   #1093
ziprun
Member
 
Registered: Apr 2018
Posts: 105

Rep: Reputation: Disabled
Quote:
Originally Posted by cwizardone View Post
We can expect gimp for slackware to be updated very soon, yes?
 
2 members found this post helpful.
Old 04-27-2018, 12:29 PM   #1094
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,204

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
hplip-3.18.4:

https://developers.hp.com/hp-linux-i.../release_notes
https://datapacket.dl.sourceforge.ne...-3.18.4.tar.gz
 
1 members found this post helpful.
Old 04-27-2018, 01:07 PM   #1095
Ne01eX
Member
 
Registered: Mar 2018
Location: Ekaterinburg region, Ural, Russian Federation
Distribution: Slackware, RTK GNU/Linux
Posts: 173

Rep: Reputation: 22
Exclamation

Quote:
Originally Posted by ziprun View Post
We can expect gimp for slackware to be updated very soon, yes?
I'm use GIMP-2.10.x since RC1. For update, need this:

1. update babl and gegl to latest.
2. New dependencies: libspiro, libmypaint, mypaint-brushes. Also, I'm built The GIMP with lensfun and gexiv2 (it's not obligatory).

My SlackBuild's:

libspiro.SlackBuild:
Code:
#!/bin/bash

# RTK GNU/Linux build script for libspiro
# Copyright 2018 Aleksandr "Ne01eX" Sayfulin, Ural, Russian Federation
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 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.

# Set SPLIT variable to "yes" for building a separate package for documentation.
# This is maybe set from external scripts:
if [ -z "$SPLIT" ]; then
    SPLIT=${SPLIT:-"yes"} ; export SPLIT
fi
if [ -z "$TMP" ]; then
    TMP=${TMP:-/tmp} ; export TMP
fi
if [ -z "$OUTPUT" ]; then
    OUTPUT=${OUTPUT:-/tmp} ; export OUTPUT
fi

cd $(dirname $0) ; CWD=$(pwd)

PKGNAM=libspiro
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-rtk01}
PKG=$TMP/package-$PKGNAM

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$(uname -m)" in
    i?86) ARCH=i586 ;;
    arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
    *) ARCH=$(uname -m) ;;
  esac
  export ARCH
fi

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then
  SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"
  LIBDIRSUFFIX=""
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

case "$ARCH" in
    arm*) TARGET=$ARCH-rtk-linux-gnueabi ;;
    *)    TARGET=$ARCH-rtk-linux ;;
esac

set -e

if [ ! -d "$TMP" ]; then
    mkdir -p $TMP
fi

if [ ! -d "$OUTPUT" ]; then
    mkdir -p $OUTPUT
fi

rm -rf $PKG
mkdir -p $PKG

cd $TMP
rm -rf $PKGNAM-$VERSION
tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1
cd $PKGNAM-$VERSION

chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

autoreconf -fiv

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --disable-static \
  --build=$TARGET || exit 1

make || exit 1
make check
make install DESTDIR=$PKG || exit 1

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

mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a \
  AUTHORS COPYING ChangeLog NEWS README* \
  $PKG/usr/doc/$PKGNAM-$VERSION

# Begin split section
if [ $SPLIT = "yes" ]; then

PKGDOC=${PKGNAM}-doc
rm -rf $TMP/package-${PKGDOC}
mkdir -p $TMP/package-${PKGDOC}/install

function add_empty_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}:
EOF
}
function add_doc_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: all core documents from /usr/doc/${PKGNAM}-${VERSION};
EOF
}
function add_info_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: info pages. See: /usr/info/*;
EOF
}
function add_gtkdoc_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: extra documents such as /usr/share/gtk-doc/${PKGNAM};
EOF
}
function add_devhelp_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: and .devhelp book such as /usr/share/devhelp/${PKGNAM}.
EOF
}

cat << EOF > $TMP/package-${PKGDOC}/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':' except on otherwise blank lines.

         |-----handy-ruler------------------------------------------------------|
${PKGDOC}: Extra documentation for ${PKGNAM} package.
${PKGDOC}:
${PKGDOC}: There is package contain documentation files for ${PKGNAM}:
EOF

for DOCDIR in doc info gtk-doc devhelp; do
    case $DOCDIR in
        'doc' )
        if [ -d $PKG/usr/$DOCDIR ]; then
            echo -n "Moving core documents..."
            ( cd $PKG/usr
              mkdir -p $TMP/package-$PKGDOC/usr
              mv $DOCDIR $TMP/package-$PKGDOC/usr
            )
            add_doc_line
            echo " [Done.]"
        else
            echo " Core documents not found!"
            add_empty_line
        fi
        ;;
        'info' )
        if [ -d $PKG/usr/$DOCDIR ]; then
            echo -n "Moving info pages..."
            ( cd $PKG/usr
              mkdir -p $TMP/package-$PKGDOC/usr
              mv $DOCDIR $TMP/package-$PKGDOC/usr
            )
            add_info_line
            echo " [Done.]"
        else
            echo " Info pages not found!"
            add_empty_line
        fi
        ;;
        'gtk-doc' )
        if [ -d $PKG/usr/share/$DOCDIR ]; then
            echo -n "Moving extra documents (such as gtk-doc)..."
            ( cd $PKG/usr/share
              mkdir -p $TMP/package-$PKGDOC/usr/share
              mv $DOCDIR $TMP/package-$PKGDOC/usr/share
            )
            add_gtkdoc_line
            echo " [Done.]"
        else
            echo " Extra documents (such as gtk-doc) not found!"
            add_empty_line
        fi
        ;;
        'devhelp' )
        if [ -d $PKG/usr/share/$DOCDIR ]; then
            echo -n "Moving .devhelp book(s)..."
            ( cd $PKG/usr/share
              mkdir -p $TMP/package-$PKGDOC/usr/share
              mv $DOCDIR $TMP/package-$PKGDOC/usr/share
            )
            add_devhelp_line
            echo " [Done.]"
        else
            echo " .devhelp book(s) not found!"
            add_empty_line
        fi
        ;;
    esac
done

for LINE in 1 2 3 4; do
    add_empty_line
done

cd $TMP/package-$PKGDOC
/sbin/makepkg -l y -c n $OUTPUT/$PKGDOC-$VERSION-noarch-$BUILD.${PKGTYPE:-txz}

# Cleanup if enabled
if [ "$1" = "--cleanup" ]; then
    rm -rf $TMP/package-$PKGDOC
fi

fi # End split section

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
if [ -x "/usr/bin/requiredbuilder" ]; then
    /usr/bin/requiredbuilder -z $PKG > $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD.dep
    if [ -f $PKG/install/slack-required ]; then
	rm -f $PKG/install/slack-required
    fi
    /usr/bin/requiredbuilder -v -y $PKG
fi

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD.${PKGTYPE:-txz}

# Cleanup if enabled
if [ "$1" = "--cleanup" ]; then
    rm -rf $TMP/$PKGNAM-$VERSION
    rm -rf $PKG
fi
slack-desc:
Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':' except on otherwise blank lines.

        |-----handy-ruler------------------------------------------------------|
libspiro: libspiro - A library for curve design.
libspiro:
libspiro: LibSpiro is a shared library designed to give programs the ability
libspiro: to create smooth continuous curves based on a given set of codes and
libspiro: X,Y constraints.
libspiro: 
libspiro: Homepage: https://github.com/fontforge/libspiro
libspiro:
libspiro:
libspiro:
libspiro:
libmypaint.SlackBuild:

Code:
#!/bin/bash

# RTK GNU/Linux build script for libmypaint
# Copyright 2018 Aleksandr "Ne01eX" Sayfulin, Ural, Russian Federation
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 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.

# Set SPLIT variable to "yes" for building a separate package for documentation.
# This is maybe set from external scripts:
if [ -z "$SPLIT" ]; then
    SPLIT=${SPLIT:-"yes"} ; export SPLIT
fi
if [ -z "$TMP" ]; then
    TMP=${TMP:-/tmp} ; export TMP
fi
if [ -z "$OUTPUT" ]; then
    OUTPUT=${OUTPUT:-/tmp} ; export OUTPUT
fi

cd $(dirname $0) ; CWD=$(pwd)

PKGNAM=libmypaint
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-rtk01}
PKG=$TMP/package-$PKGNAM

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$(uname -m)" in
    i?86) ARCH=i586 ;;
    arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
    *) ARCH=$(uname -m) ;;
  esac
  export ARCH
fi

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then
  SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"
  LIBDIRSUFFIX=""
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

case "$ARCH" in
    arm*) TARGET=$ARCH-rtk-linux-gnueabi ;;
    *)    TARGET=$ARCH-rtk-linux ;;
esac

set -e

if [ ! -d "$TMP" ]; then
    mkdir -p $TMP
fi

if [ ! -d "$OUTPUT" ]; then
    mkdir -p $OUTPUT
fi

rm -rf $PKG
mkdir -p $PKG

cd $TMP
rm -rf $PKGNAM-$VERSION
tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1
cd $PKGNAM-$VERSION

chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

sed "s|aclocal-1.13|aclocal|" -i autogen.sh
sed "s|automake-1.13|automake|" -i autogen.sh
./autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --enable-gegl \
  --disable-introspection \
  --build=$TARGET || exit 1

make || exit 1
make install DESTDIR=$PKG || exit 1

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

mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a \
  *.md COPYING PERFORMANCE TODO \
  $PKG/usr/doc/$PKGNAM-$VERSION

# Begin split section
if [ $SPLIT = "yes" ]; then

PKGDOC=${PKGNAM}-doc
rm -rf $TMP/package-${PKGDOC}
mkdir -p $TMP/package-${PKGDOC}/install

function add_empty_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}:
EOF
}
function add_doc_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: all core documents from /usr/doc/${PKGNAM}-${VERSION};
EOF
}
function add_info_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: info pages. See: /usr/info/*;
EOF
}
function add_gtkdoc_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: extra documents such as /usr/share/gtk-doc/${PKGNAM};
EOF
}
function add_devhelp_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: and .devhelp book such as /usr/share/devhelp/${PKGNAM}.
EOF
}

cat << EOF > $TMP/package-${PKGDOC}/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':' except on otherwise blank lines.

         |-----handy-ruler------------------------------------------------------|
${PKGDOC}: Extra documentation for ${PKGNAM} package.
${PKGDOC}:
${PKGDOC}: There is package contain documentation files for ${PKGNAM}:
EOF

for DOCDIR in doc info gtk-doc devhelp; do
    case $DOCDIR in
        'doc' )
        if [ -d $PKG/usr/$DOCDIR ]; then
            echo -n "Moving core documents..."
            ( cd $PKG/usr
              mkdir -p $TMP/package-$PKGDOC/usr
              mv $DOCDIR $TMP/package-$PKGDOC/usr
            )
            add_doc_line
            echo " [Done.]"
        else
            echo " Core documents not found!"
            add_empty_line
        fi
        ;;
        'info' )
        if [ -d $PKG/usr/$DOCDIR ]; then
            echo -n "Moving info pages..."
            ( cd $PKG/usr
              mkdir -p $TMP/package-$PKGDOC/usr
              mv $DOCDIR $TMP/package-$PKGDOC/usr
            )
            add_info_line
            echo " [Done.]"
        else
            echo " Info pages not found!"
            add_empty_line
        fi
        ;;
        'gtk-doc' )
        if [ -d $PKG/usr/share/$DOCDIR ]; then
            echo -n "Moving extra documents (such as gtk-doc)..."
            ( cd $PKG/usr/share
              mkdir -p $TMP/package-$PKGDOC/usr/share
              mv $DOCDIR $TMP/package-$PKGDOC/usr/share
            )
            add_gtkdoc_line
            echo " [Done.]"
        else
            echo " Extra documents (such as gtk-doc) not found!"
            add_empty_line
        fi
        ;;
        'devhelp' )
        if [ -d $PKG/usr/share/$DOCDIR ]; then
            echo -n "Moving .devhelp book(s)..."
            ( cd $PKG/usr/share
              mkdir -p $TMP/package-$PKGDOC/usr/share
              mv $DOCDIR $TMP/package-$PKGDOC/usr/share
            )
            add_devhelp_line
            echo " [Done.]"
        else
            echo " .devhelp book(s) not found!"
            add_empty_line
        fi
        ;;
    esac
done

for LINE in 1 2 3 4; do
    add_empty_line
done

cd $TMP/package-$PKGDOC
/sbin/makepkg -l y -c n $OUTPUT/$PKGDOC-$VERSION-noarch-$BUILD.${PKGTYPE:-txz}

# Cleanup if enabled
if [ "$1" = "--cleanup" ]; then
    rm -rf $TMP/package-$PKGDOC
fi

fi # End split section

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
if [ -x "/usr/bin/requiredbuilder" ]; then
    /usr/bin/requiredbuilder -z $PKG > $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD.dep
    if [ -f $PKG/install/slack-required ]; then
	rm -f $PKG/install/slack-required
    fi
    /usr/bin/requiredbuilder -v -y $PKG
fi

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD.${PKGTYPE:-txz}

# Cleanup if enabled
if [ "$1" = "--cleanup" ]; then
    rm -rf $TMP/$PKGNAM-$VERSION
    rm -rf $PKG
fi
slack-desc:

Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':' except on otherwise blank lines.

          |-----handy-ruler------------------------------------------------------|
libmypaint: libmypaint - brush library for mypaint
libmypaint:
libmypaint: MyPaint is a pressure- and tilt-sensitive painting program which works
libmypaint: well with Wacom graphics tablets and other similar devices. It comes
libmypaint: with a large brush collection including charcoal and ink to emulate
libmypaint: real media, but the highly configurable brush engine allows you to
libmypaint: experiment with your own brushes and with not-quite-natural painting.
libmypaint: 
libmypaint: Homepage: https://github.com/mypaint/libmypaint
libmypaint:
libmypaint:
mypaint-brushes.SlackBuild:

Code:
#!/bin/bash

# RTK GNU/Linux build script for mypaint-brushes

# Copyright 2018, Aleksandr "Ne01eX" Sayfulin, Ural, Russian Federation
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 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.

# Set SPLIT variable to "yes" for building a separate package for documentation.
# This is maybe set from external scripts:
if [ -z "$SPLIT" ]; then
    SPLIT=${SPLIT:-"yes"} ; export SPLIT
fi
if [ -z "$TMP" ]; then
    TMP=${TMP:-/tmp} ; export TMP
fi
if [ -z "$OUTPUT" ]; then
    OUTPUT=${OUTPUT:-/tmp} ; export OUTPUT
fi

cd $(dirname $0) ; CWD=$(pwd)

PKGNAM=mypaint-brushes
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-rtk01}
PKG=$TMP/package-$PKGNAM

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$(uname -m)" in
    i?86) ARCH=i586 ;;
    arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
    *) ARCH=$(uname -m) ;;
  esac
  export ARCH
fi
if [ "$ARCH" = "x86_64" ]; then
  LIBDIRSUFFIX="64"
else
  LIBDIRSUFFIX=""
fi

set -e

if [ ! -d "$TMP" ]; then
    mkdir -p $TMP
fi

if [ ! -d "$OUTPUT" ]; then
    mkdir -p $OUTPUT
fi

rm -rf $PKG
mkdir -p $PKG

cd $TMP
rm -rf $PKGNAM-$VERSION
tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1
cd $PKGNAM-$VERSION

chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

sed "s|aclocal-1.13|aclocal|" -i autogen.sh
sed "s|automake-1.13|automake|" -i autogen.sh
./autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --build=$TARGET || exit 1

make || exit 1
make install DESTDIR=$PKG || exit 1

mkdir -p $PKG/usr/lib$LIBDIRSUFFIX
mv $PKG/usr/share/pkgconfig $PKG/usr/lib$LIBDIRSUFFIX

mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a \
  AUTHORS COPYING ChangeLog Licenses* NEWS README* \
  $PKG/usr/doc/$PKGNAM-$VERSION

# Begin split section
if [ $SPLIT = "yes" ]; then

PKGDOC=${PKGNAM}-doc
rm -rf $TMP/package-${PKGDOC}
mkdir -p $TMP/package-${PKGDOC}/install

function add_empty_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}:
EOF
}
function add_doc_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: all core documents from /usr/doc/${PKGNAM}-${VERSION};
EOF
}
function add_info_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: info pages. See: /usr/info/*;
EOF
}
function add_gtkdoc_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: extra documents such as /usr/share/gtk-doc/${PKGNAM};
EOF
}
function add_devhelp_line {
cat << EOF >> $TMP/package-${PKGDOC}/install/slack-desc
${PKGDOC}: and .devhelp book such as /usr/share/devhelp/${PKGNAM}.
EOF
}

cat << EOF > $TMP/package-${PKGDOC}/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':' except on otherwise blank lines.

         |-----handy-ruler------------------------------------------------------|
${PKGDOC}: Extra documentation for ${PKGNAM} package.
${PKGDOC}:
${PKGDOC}: There is package contain documentation files for ${PKGNAM}:
EOF

for DOCDIR in doc info gtk-doc devhelp; do
    case $DOCDIR in
        'doc' )
        if [ -d $PKG/usr/$DOCDIR ]; then
            echo -n "Moving core documents..."
            ( cd $PKG/usr
              mkdir -p $TMP/package-$PKGDOC/usr
              mv $DOCDIR $TMP/package-$PKGDOC/usr
            )
            add_doc_line
            echo " [Done.]"
        else
            echo " Core documents not found!"
            add_empty_line
        fi
        ;;
        'info' )
        if [ -d $PKG/usr/$DOCDIR ]; then
            echo -n "Moving info pages..."
            ( cd $PKG/usr
              mkdir -p $TMP/package-$PKGDOC/usr
              mv $DOCDIR $TMP/package-$PKGDOC/usr
            )
            add_info_line
            echo " [Done.]"
        else
            echo " Info pages not found!"
            add_empty_line
        fi
        ;;
        'gtk-doc' )
        if [ -d $PKG/usr/share/$DOCDIR ]; then
            echo -n "Moving extra documents (such as gtk-doc)..."
            ( cd $PKG/usr/share
              mkdir -p $TMP/package-$PKGDOC/usr/share
              mv $DOCDIR $TMP/package-$PKGDOC/usr/share
            )
            add_gtkdoc_line
            echo " [Done.]"
        else
            echo " Extra documents (such as gtk-doc) not found!"
            add_empty_line
        fi
        ;;
        'devhelp' )
        if [ -d $PKG/usr/share/$DOCDIR ]; then
            echo -n "Moving .devhelp book(s)..."
            ( cd $PKG/usr/share
              mkdir -p $TMP/package-$PKGDOC/usr/share
              mv $DOCDIR $TMP/package-$PKGDOC/usr/share
            )
            add_devhelp_line
            echo " [Done.]"
        else
            echo " .devhelp book(s) not found!"
            add_empty_line
        fi
        ;;
    esac
done

for LINE in 1 2 3 4; do
    add_empty_line
done

cd $TMP/package-$PKGDOC
/sbin/makepkg -l y -c n $OUTPUT/$PKGDOC-$VERSION-noarch-$BUILD.${PKGTYPE:-txz}

# Cleanup if enabled
if [ "$1" = "--cleanup" ]; then
    rm -rf $TMP/package-$PKGDOC
fi

fi # End split section

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
if [ -x "/usr/bin/requiredbuilder" ]; then
    /usr/bin/requiredbuilder -z $PKG > $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD.dep
    if [ -f $PKG/install/slack-required ]; then
	rm -f $PKG/install/slack-required
    fi
    /usr/bin/requiredbuilder -v -y $PKG
fi

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD.${PKGTYPE:-txz}

# Cleanup if enabled
if [ "$1" = "--cleanup" ]; then
    rm -rf $TMP/$PKGNAM-$VERSION
    rm -rf $PKG
fi
slack-desc:

Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':' except on otherwise blank lines.

               |-----handy-ruler------------------------------------------------------|
mypaint-brushes: mypaint-brushes - brushes for paint apps
mypaint-brushes:
mypaint-brushes: MyPaint is a pressure- and tilt-sensitive painting program which works
mypaint-brushes: well with Wacom graphics tablets and other similar devices. It comes
mypaint-brushes: with a large brush collection including charcoal and ink to emulate
mypaint-brushes: real media, but the highly configurable brush engine allows you to
mypaint-brushes: experiment with your own brushes and with not-quite-natural painting.
mypaint-brushes: 
mypaint-brushes: Homepage: https://github.com/Jehan/mypaint-brushes
mypaint-brushes:
mypaint-brushes:
P.S. To return to the previous theme, welcome to here: Edit-> Preferences-> Theme-> System. And for icons - use "legacy".

P.P.S. I'm don't use /usr/share/pkgconfig. Never.


Last edited by Ne01eX; 04-27-2018 at 02:03 PM. Reason: added missing slack-desc.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration