SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.SlackBuildfor more details.
Best regards, StandartenführerS and R, Aleksandr "Ne01eX" Sayfulin.
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.SlackBuildfor 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:
# 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ührerS and R, Aleksandr "Ne01eX" Sayfulin.
# 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ührerS and R, Aleksandr "Ne01eX" Sayfulin.
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!
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:
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.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,086
Rep:
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....
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".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.