From 044465dd216325a85e1dd37a4219c301b2224d43 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 19 Mar 2010 14:39:27 +0700 Subject: [PATCH 1/3] tried to make it work with git master..., failed --- d/gforth/gforth.SlackBuild | 63 ++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/d/gforth/gforth.SlackBuild b/d/gforth/gforth.SlackBuild index e0377bdc..c1d90102 100755 --- a/d/gforth/gforth.SlackBuild +++ b/d/gforth/gforth.SlackBuild @@ -36,15 +36,10 @@ PREFIX=/usr # ( cd $REPOSITORIES/$PRGNAM # git pull # ) - # cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION - cd $TMP - if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then - ( cd $CWD - wget -c http://www.complang.tuwien.ac.at/forth/gforth/$PRGNAM-$VERSION.tar.gz - ) - fi + [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && \ + wget -c http://www.complang.tuwien.ac.at/forth/gforth/$PRGNAM-$VERSION.tar.gz -O $CWD/$PRGNAM-$VERSION.tar.gz tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* ) @@ -60,6 +55,8 @@ PREFIX=/usr # Configuration ( cd $TMP/$PRGNAM-$VERSION +# VERSION=$(grep -o "AC_INIT(\[gforth\],\[[0-9\.]*-[0-9]*\]" configure.in | sed 's|AC_INIT([gforth],[||' | sed 's|]||') + sed -i "s|lib/|lib$LIBSUFFIX/|g" $(grep -l "lib/" * -r) [ ! -e configure ] && ./autogen.sh #autoreconf ./configure \ @@ -114,32 +111,32 @@ for file in $(ls *.gz | grep -v ".*\-[0-9]\+\.gz") do install-info \$file ./dir done -( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf socket.so ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf socket.so.0.0.0 socket.so ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf socket.so.0 ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf socket.so.0.0.0 socket.so.0 ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf cstr.so ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf cstr.so.0.0.0 cstr.so ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf cstr.so.0 ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf cstr.so.0.0.0 cstr.so.0 ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf fflib.so ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf fflib.so.0.0.0 fflib.so ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf fflib.so.0 ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf fflib.so.0.0.0 fflib.so.0 ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf libffi.so ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf libffi.so.0.0.0 libffi.so ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf libffi.so.0 ) -( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf libffi.so.0.0.0 libffi.so.0 ) -( cd /usr/bin ; rm -rf vmgen ) -( cd /usr/bin ; ln -sf vmgen-$VERSION vmgen ) -( cd /usr/bin ; rm -rf gforthmi ) -( cd /usr/bin ; ln -sf gforthmi-$VERSION gforthmi ) -( cd /usr/bin ; rm -rf gforth-itc ) -( cd /usr/bin ; ln -sf gforth-itc-$VERSION gforth-itc ) -( cd /usr/bin ; rm -rf gforth-fast ) -( cd /usr/bin ; ln -sf gforth-fast-$VERSION gforth-fast ) -( cd /usr/bin ; rm -rf gforth ) -( cd /usr/bin ; ln -sf gforth-$VERSION gforth ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf socket.so ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf socket.so.0.0.0 socket.so ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf socket.so.0 ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf socket.so.0.0.0 socket.so.0 ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf cstr.so ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf cstr.so.0.0.0 cstr.so ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf cstr.so.0 ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf cstr.so.0.0.0 cstr.so.0 ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf fflib.so ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf fflib.so.0.0.0 fflib.so ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf fflib.so.0 ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf fflib.so.0.0.0 fflib.so.0 ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf libffi.so ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf libffi.so.0.0.0 libffi.so ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; rm -rf libffi.so.0 ) +# ( cd /usr/lib64/gforth/$VERSION/libcc-named ; ln -sf libffi.so.0.0.0 libffi.so.0 ) +# ( cd /usr/bin ; rm -rf vmgen ) +# ( cd /usr/bin ; ln -sf vmgen-$VERSION vmgen ) +# ( cd /usr/bin ; rm -rf gforthmi ) +# ( cd /usr/bin ; ln -sf gforthmi-$VERSION gforthmi ) +# ( cd /usr/bin ; rm -rf gforth-itc ) +# ( cd /usr/bin ; ln -sf gforth-itc-$VERSION gforth-itc ) +# ( cd /usr/bin ; rm -rf gforth-fast ) +# ( cd /usr/bin ; ln -sf gforth-fast-$VERSION gforth-fast ) +# ( cd /usr/bin ; rm -rf gforth ) +# ( cd /usr/bin ; ln -sf gforth-$VERSION gforth ) EOF cat < $PKG/install/slack-desc From b98ae812f51711c6009b33f7d527c0fdfd3ac2b6 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 22 Mar 2010 15:06:50 +0700 Subject: [PATCH 2/3] add xap/zathura, a PDF viewer --- xap/zathura/zathura.SlackBuild | 77 ++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100755 xap/zathura/zathura.SlackBuild diff --git a/xap/zathura/zathura.SlackBuild b/xap/zathura/zathura.SlackBuild new file mode 100755 index 00000000..2aa3da48 --- /dev/null +++ b/xap/zathura/zathura.SlackBuild @@ -0,0 +1,77 @@ +#!/bin/sh -x + +# variables +VERSION=master_$(date +"%Y.%m.%d_%H.%M") +BUILD=1 +PACKAGER=cyco + +TMP=/tmp +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +PKG=$TMP/$PACKAGER/pkg-$PRGNAM + +ARCH=$(uname -m) + +REPOSITORY=/home/cycojesus/projets/packages/repositories/$PRGNAM +PREFIX=/usr + +EMACS=$(basename $(ls /usr/bin/emacs-2*)) +EMACS_VERSION=$(echo "$EMACS" | grep -o "\-[0-9\.]*\-" | tr -d - | head -n1) + +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM-$VERSION + +mkdir -p $PKG + +# mise en place +cd $TMP +if [ ! -e $REPOSITORY ] ; then + mkdir -p $(dirname $REPOSITORY) + git clone git://pwmt.org/zathura.git $REPOSITORY +fi + +( cd $REPOSITORY + git pull +) + +cp -R $REPOSITORY $TMP/ +( cd $TMP/$PRGNAM + make + make install DESTDIR=$PKG MANPREFIX=$PREFIX/man +) + +# correction +( cd $PKG + chown -R root:root * + find $PKG$PREFIX/man -name "*.?" -type f -exec gzip -9 {} \; +) + +# embaumement +mkdir -p $PKG/install + +cat < $PKG/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 ':'. + + |-----handy-ruler------------------------------------------------------| +$PRGNAM: $PRGNAM (a PDF viewer) +$PRGNAM: +$PRGNAM: zathura is a highly customizable and functional PDF viewer based on the poppler +$PRGNAM: rendering library and the gtk+ toolkit. The idea behind zathura is an +$PRGNAM: application that provides a minimalistic and space saving interface as well as +$PRGNAM: an easy usage that mainly focuses on keyboard interaction. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://pwmt.org/zathura/ +$PRGNAM: +EOF + +# empaquetage +cd $PKG +makepkg -l y -c n $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD$PACKAGER.txz From 5f457194d977feb099eb9084f1a7934f4ca11aa3 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 22 Mar 2010 15:09:24 +0700 Subject: [PATCH 3/3] add bzr pull (don't ask) --- e/nxhtml/nxhtml.SlackBuild | 1 + 1 file changed, 1 insertion(+) diff --git a/e/nxhtml/nxhtml.SlackBuild b/e/nxhtml/nxhtml.SlackBuild index 0269e5cc..6179525c 100755 --- a/e/nxhtml/nxhtml.SlackBuild +++ b/e/nxhtml/nxhtml.SlackBuild @@ -33,6 +33,7 @@ if [ ! -e $REPOSITORY ] ; then fi ( cd $REPOSITORY + bzr pull bzr update )