mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2024-12-25 21:59:36 +01:00
yelp: Upgraded to 3.12.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
8f0cd37c2f
commit
7149c26425
2 changed files with 25 additions and 21 deletions
19
testing/yelp/doinst.sh
Normal file
19
testing/yelp/doinst.sh
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -x /usr/bin/update-mime-database ]; then
|
||||||
|
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||||
|
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||||
|
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e usr/share/glib-2.0/schemas ]; then
|
||||||
|
if [ -x /usr/bin/glib-compile-schemas ]; then
|
||||||
|
/usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
fi
|
|
@ -23,7 +23,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=yelp
|
PRGNAM=yelp
|
||||||
VERSION=${VERSION:-3.10.2}
|
VERSION=${VERSION:-3.12.0}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_msb}
|
TAG=${TAG:-_msb}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ if [ -z "$ARCH" ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wget -c ftp://ftp.gnome.org/pub/gnome/sources/yelp/3.10/$PRGNAM-$VERSION.tar.xz
|
wget -c ftp://ftp.gnome.org/pub/gnome/sources/yelp/3.12/$PRGNAM-$VERSION.tar.xz
|
||||||
|
|
||||||
NUMJOBS=${NUMJOBS:-" -j8 "}
|
NUMJOBS=${NUMJOBS:-" -j8 "}
|
||||||
|
|
||||||
|
@ -82,7 +82,8 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
--disable-static \
|
--enable-static=no \
|
||||||
|
--disable-schemas-compile \
|
||||||
--build=$ARCH-slackware-linux
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make $NUMJOBS || make
|
make $NUMJOBS || make
|
||||||
|
@ -91,31 +92,15 @@ make install DESTDIR=$PKG
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
# Compress and link manpages
|
|
||||||
if [ -d $PKG/usr/man ]; then
|
|
||||||
( cd $PKG/usr/man
|
|
||||||
for manpagedir in $(find . -type d -name "man*") ; do
|
|
||||||
( cd $manpagedir
|
|
||||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
|
||||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
|
||||||
rm $eachpage
|
|
||||||
done
|
|
||||||
gzip -9 *.?
|
|
||||||
)
|
|
||||||
done
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a \
|
cp -a AUTHORS COPYING* ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
AUTHORS COPYING* ChangeLog INSTALL NEWS README \
|
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \;
|
find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \;
|
||||||
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
|
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
||||||
|
|
Loading…
Reference in a new issue