Merge branch 'master' of github.com:cycojesus/slackbuilds
This commit is contained in:
commit
496fb84e9b
2 changed files with 107 additions and 33 deletions
|
@ -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 <<EOF > $PKG/install/slack-desc
|
||||
|
|
77
xap/zathura/zathura.SlackBuild
Executable file
77
xap/zathura/zathura.SlackBuild
Executable file
|
@ -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 <<EOF > $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
|
Loading…
Reference in a new issue