Ne01eX |
04-27-2018 01:07 PM |
Quote:
Originally Posted by ziprun
(Post 5848021)
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. :)
|