Merge branch 'master' of github.com:gwenhael-le-moine/slackbuilds
This commit is contained in:
commit
2d4b9b0dcb
601 changed files with 4111 additions and 34000 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -40,3 +40,5 @@ xap/st/patches/st-vertcenter*
|
|||
/xap/android-x86/android-8.1-r1/
|
||||
/xap/android-x86/usr
|
||||
/y/minecraft-launcher/minecraft-launcher.svg
|
||||
/ap/hledger-bin/LICENSE.*
|
||||
/ap/hledger-bin/*.md.*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Slackware build script for gem2tgz
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Slackware build script for npm2tgz
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
CWD=$(pwd)
|
||||
VERSION=1.11-1
|
||||
|
|
|
@ -1,55 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PKGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-b}
|
||||
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
ARCH=noarch
|
||||
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PKGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# Cleaning
|
||||
rm -fr $TMP/$PKGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
|
||||
mkdir -p $PKG/
|
||||
|
||||
# $CWD/config is pre-configured alread (permissions and all)
|
||||
cp -a $CWD/config/etc $PKG/
|
||||
|
||||
# Activate some non-default fonts adjustements
|
||||
(cd $PKG/etc/fonts/conf.d
|
||||
ln -s ../conf.avail/35-gwh.conf
|
||||
ln -s ../conf.avail/10-sub-pixel-rgb.conf
|
||||
ln -s ../conf.avail/10-autohint.conf
|
||||
)
|
||||
|
||||
cd $PKG
|
||||
# Cleaning
|
||||
chown -R root:root .
|
||||
|
||||
# Packaging
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PKGNAM: $PKGNAM (Cycojesus' post-install configuration)
|
||||
$PKGNAM:
|
||||
$PKGNAM:
|
||||
$PKGNAM:
|
||||
$PKGNAM:
|
||||
$PKGNAM:
|
||||
$PKGNAM:
|
||||
$PKGNAM:
|
||||
$PKGNAM:
|
||||
$PKGNAM:
|
||||
$PKGNAM:
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,22 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>Droid Serif</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Ubuntu</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>Droid Sans Mono</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
</fontconfig>
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# "Fix" compilation on a multilib system
|
||||
export LDFLAGS="-L/usr/lib64 "
|
|
@ -1,44 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# /etc/rc.d/rc.local: Local system initialization script.
|
||||
#
|
||||
# Put any local startup commands in here. Also, if you have
|
||||
# anything that needs to be run at shutdown time you can
|
||||
# make an /etc/rc.d/rc.local_shutdown script and put those
|
||||
# commands in there.
|
||||
|
||||
# dirty hack to let mortals adjust brightness on this laptop
|
||||
chmod 666 /sys/class/backlight/intel_backlight/brightness
|
||||
|
||||
# no need to keep eth0 busy if it's for nothing
|
||||
ifconfig eth0 | grep -q "inet addr:[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" || modprobe -r atl1c
|
||||
|
||||
# Start vboxdrv
|
||||
# If you do not wish this to be executed here then comment it out,
|
||||
# and the installer will skip it next time.
|
||||
if [ -x /etc/rc.d/rc.vboxdrv ]; then
|
||||
/etc/rc.d/rc.vboxdrv start
|
||||
fi
|
||||
|
||||
# Start vboxballoonctrl-service
|
||||
# If you do not wish this to be executed here then comment it out,
|
||||
# and the installer will skip it next time.
|
||||
if [ -x /etc/rc.d/rc.vboxballoonctrl-service ]; then
|
||||
/etc/rc.d/rc.vboxballoonctrl-service start
|
||||
fi
|
||||
|
||||
# Start vboxweb-service
|
||||
# If you do not wish this to be executed here then comment it out,
|
||||
# and the installer will skip it next time.
|
||||
if [ -x /etc/rc.d/rc.vboxweb-service ]; then
|
||||
/etc/rc.d/rc.vboxweb-service start
|
||||
fi
|
||||
|
||||
|
||||
[ -x /etc/rc.d/rc.Tether ] && /etc/rc.d/rc.Tether start
|
||||
|
||||
# To disable avahi, chmod rc.avahidaemon and rc.avahidnsconfd to 644
|
||||
if [ -x /etc/rc.d/rc.avahidaemon -a -x /etc/rc.d/rc.avahidnsconfd ]; then
|
||||
/etc/rc.d/rc.avahidaemon start
|
||||
/etc/rc.d/rc.avahidnsconfd start
|
||||
fi
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
PKGS_REPO=/home/installs/PKGs
|
||||
|
||||
# Move all recently built packages into our packages repository
|
||||
mkdir -p $PKGS_REPO
|
||||
find /tmp -name \*.t\?z -maxdepth 1 -exec mv {} $PKGS_REPO \;
|
||||
|
||||
# Clean up said repository of obsolete (not installed) packages
|
||||
cd $PKGS_REPO
|
||||
for i in *.t?z; do [ ! -e /var/adm/packages/${i%.t?z} ] && rm $i; done
|
||||
|
||||
if [ -x /etc/rc.d/rc.avahidaemon -a -x /etc/rc.d/rc.avahidnsconfd ]; then
|
||||
/etc/rc.d/rc.avahidaemon stop
|
||||
/etc/rc.d/rc.avahidnsconfd stop
|
||||
fi
|
|
@ -1,2 +0,0 @@
|
|||
SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"
|
||||
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"
|
|
@ -1 +0,0 @@
|
|||
SUBSYSTEM=="usb", SYSFS{idVendor}=="1949", MODE="0666", SYMLINK+="kindle"
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
for i in $(find config -type f); do
|
||||
cp -a "${i#config}" $(dirname $i) ;
|
||||
done
|
|
@ -1,87 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=1.0.1
|
||||
BUILD=1
|
||||
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
PREFIX=/usr
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
|
||||
[ ! -e $CWD/fsp-lnxdrv-$VERSION-src.tar.gz ] && wget -c http://sourceforge.net/projects/fsp-lnxdrv/files/fsp-lnxdrv-src/$VERSION/fsp-lnxdrv-$VERSION-src.tar.gz/download -O $CWD/fsp-lnxdrv-$VERSION-src.tar.gz
|
||||
tar xf $CWD/fsp-lnxdrv-$VERSION-src.tar.gz
|
||||
mv release_$(echo $VERSION | tr . _) $PRGNAM-$VERSION
|
||||
|
||||
( cd $TMP/$PRGNAM-$VERSION/src
|
||||
cd libfsp
|
||||
make
|
||||
cd ../fspc
|
||||
sed -i 's|usr/local|usr|g' $(grep -l usr/local *)
|
||||
./configure
|
||||
make
|
||||
|
||||
mkdir -p $PKG$PREFIX/{bin,share/$PRGNAM}
|
||||
cp fspc $PKG$PREFIX/bin/
|
||||
cp -R pic fspcui.xrc $PKG$PREFIX/share/$PRGNAM
|
||||
|
||||
chmod +x $PKG$PREFIX/bin/*
|
||||
|
||||
cd ../tools/
|
||||
mkdir -p $PKG/etc/pm/sleep.d/
|
||||
fromdos < fsp_pm.sh > $PKG/etc/pm/sleep.d/fsp_pm.sh
|
||||
chmod +x $PKG/etc/pm/sleep.d/*
|
||||
)
|
||||
|
||||
# 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 (Touchpad driver client GUI)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://fsp-lnxdrv.sourceforge.net/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,103 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=trunk_$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
OUTPUT=/tmp
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
PREFIX=/usr
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ ! -e $REPOSITORY ] ; then
|
||||
mkdir -p $(dirname $REPOSITORY)
|
||||
svn checkout http://int.ed.ntnu.no/svn/public/fspd/trunk/ $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
svn update
|
||||
)
|
||||
fi
|
||||
|
||||
cp -R $REPOSITORY $TMP/
|
||||
( cd $TMP/$PRGNAM
|
||||
mkdir -p $PKG{$PREFIX/{sbin,doc/$PRGNAM},/etc/{rc.d,conf.d}}
|
||||
cp fspd $PKG$PREFIX/sbin/
|
||||
cp $CWD/rc.fspd $PKG/etc/rc.d/rc.fspd.new
|
||||
cp README autoconf $PKG$PREFIX/doc/$PRGNAM
|
||||
cp fsp.conf $PKG/etc/conf.d/fsp.conf.new
|
||||
sed -i "s|FSPD_DIR=/usr/local/bin|FSPD_DIR=$PREFIX/sbin|" $PKG/etc/conf.d/fsp.conf
|
||||
sed -i "s|FSP_EVENT=.*|FSP_EVENT=$(ls /dev/input/by-path/platform-i8042-serio-*-event-mouse)|" $PKG/etc/conf.d/fsp.conf
|
||||
sed -i "s|FSP_FLAGS_DIR=.*|FSP_FLAGS_DIR=/sys/devices/platform/i8042/serio$(ls /dev/input/by-path/platform-i8042-serio-*-event-mouse | sed 's|/dev/input/by-path/platform-i8042-serio-||' | sed 's|-event-mouse||')|" $PKG/etc/conf.d/fsp.conf
|
||||
sed -i "s|SCROLL=0|SCROLL=1|" $PKG/etc/conf.d/fsp.conf
|
||||
|
||||
chmod +x $PKG$PREFIX/sbin/* $PKG/etc/rc.d/*
|
||||
)
|
||||
|
||||
# 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/doinst.sh
|
||||
config() {
|
||||
NEW="\$1"
|
||||
OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r \$OLD ]; then
|
||||
mv \$NEW \$OLD
|
||||
elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then # toss\
|
||||
the redundant copy
|
||||
rm \$NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
config etc/rc.d/rc.fspd.new
|
||||
config etc/conf.d/fspd.conf.new
|
||||
EOF
|
||||
|
||||
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 (Touchpad manager daemon)
|
||||
$PRGNAM:
|
||||
$PRGNAM: FSP Daemon is made to dissable the Sentelic touchpad when the keyboard
|
||||
$PRGNAM: is used. Inspired by the syndaemon for synaptic.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://int.ed.ntnu.no/svn/public/fspd/trunk/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,27 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
source /etc/conf.d/fsp.conf
|
||||
|
||||
case $1 in
|
||||
"start")
|
||||
if [ -e $PID_FILE ]; then
|
||||
echo "fspd already running ($(cat $PID_FILE))"
|
||||
else
|
||||
exec $FSPD_DIR/fspd &
|
||||
fi
|
||||
;;
|
||||
"stop")
|
||||
if [ -e $PID_FILE ]; then
|
||||
kill $(cat $PID_FILE)
|
||||
rm $PID_FILE
|
||||
else
|
||||
echo "fspd not running"
|
||||
fi
|
||||
;;
|
||||
"restart")
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/sh
|
||||
#exec tail -n +3 $0
|
||||
# This file provides an easy way to add custom menu entries. Simply type the
|
||||
# menu entries you want to add after this comment. Be careful not to change
|
||||
# the 'exec tail' line above.
|
||||
for kernel in /boot/2.* ; do
|
||||
if [ -e $kernel/bzImage ] ; then
|
||||
echo "menuentry \"Slackware $(basename $kernel)\" {"
|
||||
echo " set root=(hd0,2)"
|
||||
echo " linux /boot/$kernel/bzImage root=/dev/sda6 ro resume=/dev/sda5"
|
||||
echo "}"
|
||||
fi
|
||||
done
|
|
@ -1,133 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Copyright 2009 Andrew Brouwers, abrouwers.gmail.com
|
||||
# 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.
|
||||
|
||||
# Based on Pat's slackbuild from 13.0
|
||||
|
||||
PKGNAM=grub
|
||||
VERSION=1.97.2
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=1
|
||||
|
||||
|
||||
CWD=$(pwd)
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=${TMP:-/tmp}
|
||||
PKG=$TMP/pkg-${PKGNAM}
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
fi
|
||||
|
||||
cd $TMP
|
||||
rm -rf ${PKGNAM}-${VERSION}
|
||||
tar xzvf $CWD/${PKGNAM}-${VERSION}.tar.gz
|
||||
cd ${PKGNAM}-${VERSION}
|
||||
|
||||
# Make sure ownerships and permissions are sane:
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# /usr/share seems appropriate grub's files, so we'll append it to --libdir
|
||||
|
||||
CFLAGS="${SLKCFLAGS}" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/share \
|
||||
--infodir=/usr/info \
|
||||
--mandir=/usr/man \
|
||||
--sbindir=/sbin \
|
||||
--sysconfdir=/etc
|
||||
|
||||
make || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
[ -e $CWD/50_gwh ] && cp $CWD/50_gwh $PKG/etc/grub.d/ && chmod +x $PKG/etc/grub.d/$CWD/50_gwh
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
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
|
||||
|
||||
# Compress info pages and purge "dir" file from the package:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
( cd $PKG/usr/info
|
||||
rm -f dir
|
||||
gzip -9 *
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/grub-$VERSION
|
||||
cp -a \
|
||||
AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO \
|
||||
$PKG/usr/doc/grub-$VERSION
|
||||
|
||||
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------------------------------------------------------|
|
||||
grub: grub (GNU GRUB bootloader)
|
||||
grub:
|
||||
grub: This is the next-generation GRUB bootloader. Grub2 has been
|
||||
grub: re-written from scratch to clean up everything from modularity
|
||||
grub: and portability. It features support for scripting, themes,
|
||||
grub: real memory-management, rescue mode, and various other improvements
|
||||
grub: over grub-legacy.
|
||||
grub:
|
||||
grub: Visit the homepage: http://www.gnu.org/software/grub/grub-2.en.html
|
||||
grub:
|
||||
EOF
|
||||
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/grub-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,140 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=i8kutils
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
VERSION=1.33
|
||||
|
||||
EXT=tar.gz
|
||||
|
||||
DOCS="AUTHORS ChangeLog COPYING INSTALL NEWS README* TODO examples patches"
|
||||
|
||||
ARCH=$(uname -m)
|
||||
BUILD=2
|
||||
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS="-fPIC -O2"
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
tar xf $CWD/$PRGNAM-$VERSION.$EXT
|
||||
cd $PRGNAM-$VERSION
|
||||
|
||||
# configuration
|
||||
|
||||
# compilation
|
||||
make -j3 PREFIX=$PREFIX
|
||||
|
||||
# installation
|
||||
mkdir -p $PKG$PREFIX/{sbin,bin,man}
|
||||
make install DESTDIR=$PKG PREFIX=$PREFIX
|
||||
cp *.1 $PKG$PREFIX/man
|
||||
|
||||
mkdir -p $PKG/etc/rc.d
|
||||
cat <<EOF > $PKG/etc/rc.d/rc.i8kmon.new
|
||||
#!/bin/sh
|
||||
# Start/stop/restart i8kmon.
|
||||
|
||||
# Start i8kmon:
|
||||
i8kmon_start() {
|
||||
if [ -x /usr/bin/i8kmon -a -d /proc/i8k ]; then
|
||||
echo "Starting i8k daemon: /usr/sbin/i8kmon"
|
||||
/usr/bin/i8kmon
|
||||
fi
|
||||
}
|
||||
|
||||
# Stop i8kmon:
|
||||
i8kmon_stop() {
|
||||
killall i8kmon
|
||||
}
|
||||
|
||||
# Restart i8kmon:
|
||||
i8kmon_restart() {
|
||||
i8kmon_stop
|
||||
sleep 1
|
||||
i8kmon_start
|
||||
}
|
||||
|
||||
case "\$1" in
|
||||
'start')
|
||||
i8kmon_start
|
||||
;;
|
||||
'stop')
|
||||
i8kmon_stop
|
||||
;;
|
||||
'restart')
|
||||
i8kmon_restart
|
||||
;;
|
||||
*)
|
||||
echo "usage \$0 start|stop|restart"
|
||||
esac
|
||||
EOF
|
||||
chmod +x $PKG/etc/rc.d/rc.i8kmon.new
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
cp -R $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
mkdir $PKG/etc
|
||||
cp i8kmon.conf $PKG/etc/i8kmon.conf.new
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
# Strip binaries
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
config() {
|
||||
NEW="\$1"
|
||||
OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r \$OLD ]; then
|
||||
mv \$NEW \$OLD
|
||||
elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm \$NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
config etc/rc.d/rc.i8kmon.new
|
||||
EOF
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (user-space programs for accessing the SMM BIOS of Dell laptops.)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://packages.debian.org/i8kutils
|
||||
$PRGNAM:
|
||||
$PRGNAM: see /usr/doc/$PRGNAM-$VERSION for more details
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,78 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")_$(uname -r)}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
PRGNAM=${PRGNAM:-$(basename $CWD)}
|
||||
PKG=${PKG:-$TMP/pkg-$PRGNAM}
|
||||
|
||||
ARCH=${ARCH:-noarch}
|
||||
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
REPOSITORY=${REPOSITORY:=/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG
|
||||
|
||||
mkdir -p $TMP
|
||||
cd $TMP
|
||||
|
||||
# mise en place
|
||||
[ ! -e $REPOSITORY ] \
|
||||
&& git clone https://github.com/guillaumezin/nvidiabl.git $REPOSITORY \
|
||||
|| (cd $REPOSITORY; git pull)
|
||||
|
||||
cp -R $REPOSITORY $PRGNAM
|
||||
cd $PRGNAM
|
||||
make
|
||||
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
mkdir -p $PKG$PREFIX/{sbin,doc/$PRGNAM}
|
||||
cp -R scripts/ README $PKG$PREFIX/doc/$PRGNAM
|
||||
cp scripts/usr/local/sbin/* $PKG$PREFIX/sbin
|
||||
|
||||
mkdir -p $PKG/etc/udev/rules.d/
|
||||
cat <<EOF > $PKG/etc/udev/rules.d/97-nvidia-brightness.rules
|
||||
KERNEL=="nvidia_backlight", SUBSYSTEM=="backlight", RUN+="/usr/bin/chmod 0666 /sys/class/backlight/%k/brightness"
|
||||
EOF
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# 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 (Linux driver)
|
||||
$PRGNAM:
|
||||
$PRGNAM: for setting the backlight brightness on laptops using NVIDIA GPU
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://github.com/guillaumezin/nvidiabl
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,67 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
VERSION=${VERSION:-0.10.0}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
PRGNAM=${PRGNAM:-$(basename $CWD)}
|
||||
PKG=${PKG:-$TMP/pkg-$PRGNAM}
|
||||
|
||||
ARCH=${ARCH:-noarch}
|
||||
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG
|
||||
|
||||
mkdir -p $PKG/opt/ $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
# mise en place
|
||||
[ ! -e $CWD/$PRGNAM-bin-$VERSION.zip ] && wget -c http://sourceforge.net/projects/$PRGNAM/files/$VERSION/$PRGNAM-bin-$VERSION.zip/download -O $CWD/$PRGNAM-bin-$VERSION.zip
|
||||
|
||||
cd $PKG/opt/
|
||||
unzip $CWD/$PRGNAM-bin-$VERSION.zip
|
||||
mv $PRGNAM-bin-$VERSION $PRGNAM
|
||||
|
||||
cd $PKG$PREFIX/doc/$PRGNAM
|
||||
for i in COPYING.txt CREDITS.txt LICENSE.txt NEWS.txt README.txt docs; do
|
||||
ln -s /opt/$PRGNAM/$i
|
||||
done
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# 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 (An EFI boot manager utility)
|
||||
$PRGNAM:
|
||||
$PRGNAM: rEFInd is a fork of the rEFIt boot manager. Like rEFIt, rEFInd can
|
||||
$PRGNAM: auto-detect your installed EFI boot loaders and it presents a pretty
|
||||
$PRGNAM: GUI menu of boot options. rEFInd goes beyond rEFIt in that rEFInd
|
||||
$PRGNAM: better handles systems with many boot loaders, gives better control
|
||||
$PRGNAM: over the boot loader search process, and provides the ability for users
|
||||
$PRGNAM: to define their own boot loader entries.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.rodsbooks.com/refind/index.html
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,82 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PKGNAM=$(basename $CWD)
|
||||
PRGNAM=$(echo $PKGNAM | sed 's|-firmware||')
|
||||
VERSION=${VERSION:-$(ls -ut $PRGNAM*.tar.?z*| head -n1 | cut -d_ -f3 | sed 's|.tar.*||')}
|
||||
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PKGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# Cleaning
|
||||
rm -fr $TMP/$PKGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
|
||||
mkdir -p $TMP/
|
||||
|
||||
tar -C $TMP -xf $CWD/${PRGNAM}_linux_$VERSION.tar.gz
|
||||
mv $TMP/${PRGNAM}_linux_$VERSION $TMP/$PKGNAM-$VERSION
|
||||
|
||||
cd $TMP/$PKGNAM-$VERSION
|
||||
# Preparation
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
mkdir -p $PKG/lib/firmware
|
||||
cp -R firmware/RTL8192SE/*.bin $PKG/lib/firmware
|
||||
( cd $PKG/lib/firmware
|
||||
ln -s rtl8192sfw.bin rtl8192sefw.bin
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PKGNAM
|
||||
cp readme.txt release_note $PKG/usr/doc/$PKGNAM
|
||||
mv $PKG/lib/firmware/RTL8192SE/Realtek-Firmware-License.txt $PKG/usr/doc/$PKGNAM
|
||||
|
||||
cd $PKG
|
||||
# Cleaning
|
||||
chown -R root:root .
|
||||
find . -type d -exec chmod 755 {} \;
|
||||
find . -type f -exec chmod 644 {} \;
|
||||
|
||||
# Packaging
|
||||
mkdir install
|
||||
cat <<EOF > install/doinst.sh
|
||||
#!/bin/sh
|
||||
|
||||
grep r8192_pci.ko /lib/modules/\$(uname -r)/modules.dep && rm -fr /lib/modules/\$(uname -r)/kernel/drivers/staging/rtl8192e/ || echo > /dev/null
|
||||
grep r8192se_pci.ko /lib/modules/\$(uname -r)/modules.dep && rm -fr /lib/modules/\$(uname -r)/kernel/ubuntu/rtl8192se/* || echo > /dev/null
|
||||
rm -f /etc/acpi/wireless-rtl-ac-dc-power.sh
|
||||
rm -f /etc/acpi/events/RadioPower.sh
|
||||
|
||||
depmod -a
|
||||
EOF
|
||||
cat <<EOF > install/slack-desc
|
||||
$PKGNAM: $PKGNAM (RTL8192SE firmware)
|
||||
$PKGNAM:
|
||||
$PKGNAM: This firmware supports RealTek rtl8192SE PCI Wireless LAN NIC
|
||||
$PKGNAM:
|
||||
$PKGNAM: http://realtek.com
|
||||
$PKGNAM: http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true
|
||||
$PKGNAM:
|
||||
$PKGNAM: the 3 "official" mirrors:
|
||||
$PKGNAM: ftp://WebUser:pGL7E6v@202.134.71.21/cn/wlan/
|
||||
$PKGNAM: ftp://WebUser:pGL7E6v@208.70.202.219/cn/wlan/
|
||||
$PKGNAM: ftp://WebUser:pGL7E6v@218.210.127.132/cn/wlan/
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,87 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-$(ls -ut $PRGNAM*.tar.?z*| head -n1 | cut -d_ -f3 | sed 's|.tar.*||')}
|
||||
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# Cleaning
|
||||
rm -fr $TMP/$PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
|
||||
mkdir -p $TMP/
|
||||
|
||||
tar -C $TMP -xf $CWD/${PRGNAM}_linux_$VERSION.tar.gz
|
||||
mv $TMP/${PRGNAM}_linux_$VERSION $TMP/$PRGNAM-$VERSION
|
||||
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
# Preparation
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Building
|
||||
make
|
||||
|
||||
# Installation
|
||||
mkdir -p $PKG/lib/modules/$(uname -r)/kernel/drivers/net/wireless/
|
||||
find ./HAL/ -name \*.ko -exec cp {} $PKG/lib/modules/$(uname -r)/kernel/drivers/net/wireless/ \;
|
||||
|
||||
mkdir -p $PKG/lib/
|
||||
cp -R firmware $PKG/lib/
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM
|
||||
cp readme.txt release_note $PKG/usr/doc/$PRGNAM
|
||||
mv $PKG/lib/firmware/*/Realtek-Firmware-License.txt $PKG/usr/doc/$PRGNAM
|
||||
|
||||
PRGNAM=$PRGNAM-$(uname -r | tr - _)
|
||||
|
||||
cd $PKG
|
||||
# Cleaning
|
||||
chown -R root:root .
|
||||
find . -type d -exec chmod 755 {} \;
|
||||
find . -type f -exec chmod 644 {} \;
|
||||
|
||||
# Packaging
|
||||
mkdir install
|
||||
cat <<EOF > install/doinst.sh
|
||||
#!/bin/sh
|
||||
|
||||
grep r8192_pci.ko /lib/modules/\$(uname -r)/modules.dep && rm -fr /lib/modules/\$(uname -r)/kernel/drivers/staging/rtl8192e/ || echo > /dev/null
|
||||
grep r8192se_pci.ko /lib/modules/\$(uname -r)/modules.dep && rm -fr /lib/modules/\$(uname -r)/kernel/ubuntu/rtl8192se/* || echo > /dev/null
|
||||
rm -f /etc/acpi/wireless-rtl-ac-dc-power.sh
|
||||
rm -f /etc/acpi/events/RadioPower.sh
|
||||
|
||||
depmod -a
|
||||
EOF
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (RTL8192SE Linux driver)
|
||||
$PRGNAM:
|
||||
$PRGNAM: This driver supports RealTek rtl8192SE PCI Wireless LAN NIC
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://realtek.com
|
||||
$PRGNAM: http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true
|
||||
$PRGNAM:
|
||||
$PRGNAM: the 3 "official" mirrors:
|
||||
$PRGNAM: ftp://WebUser:pGL7E6v@202.134.71.21/cn/wlan/
|
||||
$PRGNAM: ftp://WebUser:pGL7E6v@208.70.202.219/cn/wlan/
|
||||
$PRGNAM: ftp://WebUser:pGL7E6v@218.210.127.132/cn/wlan/
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,66 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
PRGNAM=${PRGNAM:-$(basename $CWD)}
|
||||
PKG=${PKG:-$TMP/pkg-$PRGNAM}
|
||||
|
||||
ARCH=${ARCH:-noarch}
|
||||
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
REPOSITORY=${REPOSITORY:=/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG
|
||||
|
||||
mkdir -p $PKG/var/lib/sbopkg/
|
||||
|
||||
# mise en place
|
||||
[ ! -e $REPOSITORY ] \
|
||||
&& git clone http://git.gitorious.org/sbopkg-slackware-queues/sbopkg-slackware-queues.git $REPOSITORY \
|
||||
|| (cd $REPOSITORY; git pull)
|
||||
|
||||
cd $PKG/var/lib/sbopkg/
|
||||
cp -R $REPOSITORY queues
|
||||
rm -fr queues/.git*
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# 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 (Unofficial repository of Sbopkg queues.)
|
||||
$PRGNAM:
|
||||
$PRGNAM: This repository contains build queues for all the Slackware packages
|
||||
$PRGNAM: from the SlackBuilds.org project.
|
||||
$PRGNAM: This archive is not endorsed by any of the Slackware, SlackBuilds.org or
|
||||
$PRGNAM: Sbopkg teams.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://gitorious.org/sbopkg-slackware-queues#more
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,84 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=${VERSION:-trunk_$(date +"%Y.%m.%d_%H.%M")}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
|
||||
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# 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 http://github.com/Schnouki/Golbarg.git $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
|
||||
cp -R $REPOSITORY $TMP/
|
||||
cd $TMP/$PRGNAM
|
||||
python ./setup.py install --root $PKG
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# move doc/ to the appropriate location
|
||||
mkdir -p $PKG$PREFIX/doc
|
||||
mv $PKG$PREFIX/share/golbarg/ $PKG$PREFIX/doc
|
||||
|
||||
# move golbarg.el where it belongs
|
||||
mkdir -p $PKG$PREFIX/share/emacs/site-lisp/golbarg/
|
||||
mv $PKG$PREFIX/doc/golbarg/golbarg.el $PKG$PREFIX/share/emacs/site-lisp/golbarg/
|
||||
( cd $PKG$PREFIX/share/emacs/site-lisp/golbarg/
|
||||
EMACS=$(basename $(ls /usr/bin/emacs-2*))
|
||||
$EMACS -batch -f batch-byte-compile *.el
|
||||
)
|
||||
|
||||
# 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 static blog generator written in Python)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Golbarg is a static blog generator written in Python. It is heavily
|
||||
$PRGNAM: inspired by Jekyll, but is is (obviously!) better (at least in my
|
||||
$PRGNAM: opinion).
|
||||
$PRGNAM: You can see it in action on my own blog, (source code on Github too).
|
||||
$PRGNAM: Golbarg is free software, available under the terms of the GNU GPLv3
|
||||
$PRGNAM: license.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://github.com/Schnouki/Golbarg
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,64 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
#NOTE: Needs File::Next (cpan -i File::Next)
|
||||
|
||||
# variables
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
OUTPUT=/tmp
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
VERSION=git$(date +%Y.%m.%d_%H.%M)
|
||||
|
||||
EXT=tar.xz
|
||||
|
||||
DOCS="AUTHORS ChangeLog COPYING INSTALL NEWS README TODO"
|
||||
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS="-fPIC -O2"
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
[ ! -e $CWD/ack-standalone ] && wget -c http://betterthangrep.com/ack-standalone $CWD/ack-standalone
|
||||
|
||||
# installation
|
||||
mkdir -p $PKG$PREFIX/bin
|
||||
cp $CWD/ack-standalone $PKG$PREFIX/bin/ack
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (a power search tool for programmers)
|
||||
$PRGNAM:
|
||||
$PRGNAM: ack is a tool like grep, designed for programmers with large trees of
|
||||
$PRGNAM: heterogeneous source code.
|
||||
$PRGNAM:
|
||||
$PRGNAM: ack is written purely in Perl, and takes advantage of the power of
|
||||
$PRGNAM: Perl's regular expressions.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://betterthangrep.com/
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,69 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
ARCH=noarch
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
PREFIX=/usr
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
[ ! -e $REPOSITORY ] && git clone git://github.com/zsh-users/antigen.git $REPOSITORY
|
||||
( cd $REPOSITORY && git pull )
|
||||
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
|
||||
|
||||
mkdir -p $PKG$PREFIX/share/antigen/
|
||||
cp $REPOSITORY/antigen.zsh $PKG$PREFIX/share/antigen/
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||
cp -R $REPOSITORY/*.{txt,mkd} $PKG$PREFIX/doc/$PRGNAM/
|
||||
cp $CWD/SlackBuild $PKG$PREFIX/doc/$PRGNAM/
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# 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 plugin manager for zsh, inspired by oh-my-zsh and vundle.)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Antigen is a small set of functions that help you easily manage your
|
||||
$PRGNAM: shell (zsh) plugins, called bundles.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://antigen.sharats.me
|
||||
$PRGNAM: http://github.com/zsh-users/antigen
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,76 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=${VERSION:-trunk_$(date +"%Y.%m.%d_%H.%M")}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
|
||||
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# 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)
|
||||
svn checkout https://svn.torproject.org/svn/arm/trunk/ $REPOSITORY
|
||||
fi
|
||||
|
||||
( cd $REPOSITORY
|
||||
svn update
|
||||
)
|
||||
|
||||
cp -R $REPOSITORY $TMP/
|
||||
( cd $TMP/$PRGNAM
|
||||
python ./setup.py install --root $PKG
|
||||
)
|
||||
|
||||
# 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 (Terminal status monitor for Tor relays.)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Command line application for monitoring Tor relays, providing real time
|
||||
$PRGNAM: status information such as the current configuration, bandwidth usage,
|
||||
$PRGNAM: message log, connections, etc. This uses a curses interface much like
|
||||
$PRGNAM: 'top' does for system usage. The application is intended for
|
||||
$PRGNAM: command-line aficionados, ssh connections, and anyone stuck with a tty
|
||||
$PRGNAM: terminal for checking their relay's status.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.atagar.com/arm/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,69 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
OUTPUT=/tmp
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
VERSION=$(date +%Y.%m.%d_%H.%M)
|
||||
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
GIT_URL="https://github.com/beetbox/beets.git"
|
||||
[ ! -e $REPOSITORY ] && git clone "$GIT_URL" $REPOSITORY
|
||||
( cd $REPOSITORY && git pull )
|
||||
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
|
||||
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM
|
||||
cd $TMP/$PRGNAM
|
||||
|
||||
python ./setup.py build
|
||||
|
||||
# installation
|
||||
python ./setup.py install --root=$PKG
|
||||
|
||||
mkdir -p $PKG$PREFIX/share/zsh/site-functions/
|
||||
cp extra/_beet $PKG$PREFIX/share/zsh/site-functions/
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM
|
||||
cp -R LICENSE README.rst docs/ extra/ $PKG/usr/doc/$PRGNAM
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (music library manager and MusicBrainz tagger)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Beets is the media library management system for obsessive-compulsive music geeks.
|
||||
$PRGNAM:
|
||||
$PRGNAM: The purpose of beets is to get your music collection right once and for all. It
|
||||
$PRGNAM: catalogs your collection, automatically improving its metadata as it goes. It
|
||||
$PRGNAM: then provides a bouquet of tools for manipulating and accessing your music.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://beets.io/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,99 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
PRGNAM=cclive
|
||||
VERSION=0.6.1
|
||||
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
||||
|
||||
CWD=$(pwd)
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
)
|
||||
|
||||
# Fetching sources
|
||||
( cd $TMP
|
||||
[ -e $CWD/$PRGNAM-$VERSION.tar.?z* ] \
|
||||
&& tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
[ ! -e $PRGNAM-$VERSION ] \
|
||||
&& wget -c http://$PRGNAM.googlecode.com/files/$PRGNAM-$VERSION.tar.bz2 \
|
||||
&& tar xvf $PRGNAM-$VERSION.tar.?z*
|
||||
)
|
||||
|
||||
# Preparation
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Configuration
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--libdir=$PREFIX/lib64
|
||||
)
|
||||
|
||||
# Building
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make
|
||||
)
|
||||
|
||||
# Installation
|
||||
mkdir -p $PKG$PREFIX/{bin,lib$LIBSUFFIX/$PRGNAM,man/man1}
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make install DESTDIR=$PKG
|
||||
)
|
||||
|
||||
# Cleaning
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find ./man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Packaging
|
||||
( cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM ()
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||
)
|
||||
|
|
@ -1,215 +0,0 @@
|
|||
#!/bin/sh
|
||||
#-- chrpath for Slackware --
|
||||
# Build script by Phantom X <megaphantomx@bol.com.br>
|
||||
# Suggested usage: $ chrpath.SlackBuild 2>&1 | tee build.log
|
||||
#--
|
||||
# Copyright 2008, 2009, 2010 Phantom X, Goiania, Brazil.
|
||||
# Copyright 2006 Martijn Dekker, Groningen, Netherlands.
|
||||
#
|
||||
# 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.
|
||||
|
||||
# ftp://ftp.hungry.com/pub/hungry/chrpath/
|
||||
|
||||
PACKAGER_ID=gwh
|
||||
|
||||
|
||||
# Set YES for native build with gcc >= 4.2
|
||||
SB_NATIVE=${SB_NATIVE:-YES}
|
||||
|
||||
# Set to YES to replicate slackbuild and patches
|
||||
SB_REP=${SB_REP:-YES}
|
||||
|
||||
CWD=$(pwd)
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp}
|
||||
if [ ! -d ${TMP} ]; then
|
||||
mkdir -p ${TMP}
|
||||
fi
|
||||
|
||||
NAME=chrpath
|
||||
PKG=${PKG:-${TMP}/pkg-${NAME}}
|
||||
|
||||
VERSION=${VERSION:-0.13}
|
||||
if [ "${SB_NATIVE}" = "YES" ] ;then
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
else
|
||||
ARCH=${ARCH:-i686}
|
||||
fi
|
||||
if [ "${ARCH}" = "x86_64" ] ;then
|
||||
SLKTARGET=${SLKTARGET:-x86_64}
|
||||
else
|
||||
SLKTARGET=${SLKTARGET:-i486}
|
||||
fi
|
||||
SLKDTARGET=${SLKDTARGET:-slackware}
|
||||
BUILD=${BUILD:-5}
|
||||
NJOBS=${NJOBS:-$(( $(getconf _NPROCESSORS_ONLN) + 1 ))}
|
||||
DOCDIR=${PKG}/usr/doc/${NAME}-${VERSION}
|
||||
SBDIR=${PKG}/usr/src/slackbuilds/${NAME}
|
||||
PKGDEST=${PKGDEST:-${CWD}}
|
||||
PKGFORMAT=${PKGFORMAT:-txz}
|
||||
PKGNAME=${NAME}-$(echo ${VERSION} | tr - . )-${ARCH}-${BUILD}${PACKAGER_ID}
|
||||
|
||||
DATE=$(LC_ALL=C date +%Y.%m.%d_%H.%M)
|
||||
|
||||
SRCDIR=${NAME}-${VERSION}
|
||||
SRCARCHIVE=${SRCDIR}.tar.gz
|
||||
|
||||
DL_PROG=${DL_PROG:-wget}
|
||||
DL_TO=${DL_TO:-5}
|
||||
DL_OPTS=${DL_OPTS:-"--timeout=${DL_TO}"}
|
||||
DL_URL="ftp://ftp.hungry.com/pub/hungry/${NAME}/${SRCARCHIVE}"
|
||||
FEDORACVS=fedora-cvs.sh
|
||||
FEDORABRANCH=${FEDORABRANCH:-devel}
|
||||
|
||||
# if source is not present, download in source rootdir if possible
|
||||
test -r ${CWD}/${SRCARCHIVE} || ${DL_PROG} ${DL_OPTS} ${DL_URL} \
|
||||
|| sh ${CWD}/${FEDORACVS} ${NAME} ${FEDORABRANCH} ${SRCARCHIVE} || exit 1
|
||||
|
||||
if [ "${SB_NATIVE}" = "YES" ] ;then
|
||||
SLKCFLAGS="-O2 -march=native -mtune=native ${SB_ECFLAGS} -pipe"
|
||||
else
|
||||
case "${ARCH}" in
|
||||
i[3-6]86) SLKCFLAGS="-O2 -march=${ARCH} -mtune=i686"
|
||||
;;
|
||||
s390) SLKCFLAGS="-O2"
|
||||
;;
|
||||
x86_64) SLKCFLAGS="-O2 -fPIC"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ "${ARCH}" = "x86_64" ] ;then
|
||||
LIBDIRSUFFIX="64"
|
||||
SLKCFLAGS="${SLKCFLAGS} -fPIC"
|
||||
else
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
if [ -d ${PKG} ]; then
|
||||
# Clean up a previous build
|
||||
rm -rf ${PKG}
|
||||
fi
|
||||
mkdir -p ${PKG}
|
||||
|
||||
cd ${TMP}
|
||||
rm -rf ${SRCDIR}
|
||||
tar -xvf ${CWD}/${SRCARCHIVE} || exit 1
|
||||
cd ${SRCDIR} || exit 1
|
||||
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
# zcat ${CWD}/${NAME}.patch.gz | patch -p0 -E --backup --verbose || exit 1
|
||||
zcat ${CWD}/${NAME}-multilib.patch.gz | patch -p1 -E --backup --verbose || exit 1
|
||||
zcat ${CWD}/${NAME}-keepgoing.patch.gz | patch -p1 -E --backup --verbose || exit 1
|
||||
|
||||
autoreconf -ivf || exit 1
|
||||
|
||||
CFLAGS="${SLKCFLAGS}" \
|
||||
CXXFLAGS="${SLKCFLAGS}" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var/lib \
|
||||
--infodir=/usr/info \
|
||||
--mandir=/usr/man \
|
||||
--disable-static \
|
||||
--build=${SLKTARGET}-${SLKDTARGET}-linux || exit 1
|
||||
|
||||
make -j${NJOBS} || make || exit 1
|
||||
make install DESTDIR=${PKG} || exit 1
|
||||
|
||||
rm -f ${PKG}/usr/lib*/*.la
|
||||
|
||||
find ${PKG} | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
# Add a documentation directory:
|
||||
rm -rf ${DOCDIR}
|
||||
mkdir -p ${DOCDIR}
|
||||
cp -a \
|
||||
AUTHORS COPYING README NEWS ChangeLog* ${CWD}/ChangeLog.SB \
|
||||
${DOCDIR}/
|
||||
find ${DOCDIR}/ -type d -print0 | xargs -0 chmod 0755
|
||||
find ${DOCDIR}/ -type f -print0 | xargs -0 chmod 0644
|
||||
|
||||
# Compress and link manpages, if any:
|
||||
if [ -d ${PKG}/usr/share/man ]; then
|
||||
mv ${PKG}/usr/share/man ${PKG}/usr/man
|
||||
fi
|
||||
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}/install
|
||||
cat ${CWD}/slack-desc > ${PKG}/install/slack-desc
|
||||
cat ${CWD}/slack-required > ${PKG}/install/slack-required
|
||||
|
||||
sed -i "s|_PACKAGER|${PACKAGER}|g; s|_BUILD_DATE|${DATE}|g" \
|
||||
${PKG}/install/slack-desc
|
||||
|
||||
if [ "${SB_REP}" = "YES" ] ;then
|
||||
# Replicate slackbuild and patches
|
||||
mkdir -p ${SBDIR}
|
||||
install -m0644 ${CWD}/slack-desc ${CWD}/slack-required ${CWD}/ChangeLog.SB \
|
||||
${CWD}/${FEDORACVS} ${CWD}/${NAME}-*.patch.gz ${SBDIR}/
|
||||
install -m0755 ${CWD}/${NAME}.SlackBuild \
|
||||
${SBDIR}/${NAME}.SlackBuild
|
||||
fi
|
||||
|
||||
# Build package:
|
||||
set +o xtrace # no longer print commands upon execution
|
||||
|
||||
ROOTCOMMANDS="set -o errexit -o xtrace ; cd ${PKG} ;
|
||||
/bin/chown --recursive root:root . ;"
|
||||
|
||||
ROOTCOMMANDS="${ROOTCOMMANDS}
|
||||
/sbin/makepkg --linkadd y --chown n ${PKGDEST}/${PKGNAME}.${PKGFORMAT} "
|
||||
|
||||
if test ${UID} = 0; then
|
||||
eval ${ROOTCOMMANDS}
|
||||
set +o xtrace
|
||||
elif test "$(type -t fakeroot)" = 'file'; then
|
||||
echo -e "\e[1mEntering fakeroot environment.\e[0m"
|
||||
echo ${ROOTCOMMANDS} | fakeroot
|
||||
else
|
||||
echo -e "\e[1mPlease enter your root password.\e[0m (Consider installing fakeroot.)"
|
||||
/bin/su -c "${ROOTCOMMANDS}"
|
||||
fi
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
echo "Cleaning..."
|
||||
if [ -d ${TMP}/${SRCDIR} ]; then
|
||||
rm -rf ${TMP}/${SRCDIR} && echo "${TMP}/${SRCDIR} cleanup completed"
|
||||
fi
|
||||
if [ -d ${PKG} ]; then
|
||||
rm -rf ${PKG} && echo "${PKG} cleanup completed"
|
||||
fi
|
||||
rmdir ${TMP} && echo "${TMP} cleanup completed"
|
||||
fi
|
||||
exit 0
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,92 +0,0 @@
|
|||
#!/bin/bash
|
||||
# -- fedora-cvs.sh --
|
||||
# Retrieve sources from Fedora cvs.
|
||||
#
|
||||
# Script by Phantom X <megaphantomx@bol.com.br>
|
||||
# Suggested usage: $ fedora-cvs package dist
|
||||
#
|
||||
# Copyright 2008 Phantom X, Goiania, Brazil.
|
||||
#
|
||||
# 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 -e
|
||||
|
||||
module="${1}"
|
||||
dist="${2}"
|
||||
|
||||
[ -n "${3}" ] && sarchive="${3}"
|
||||
|
||||
fedoraroot=":pserver:anonymous@cvs.fedoraproject.org:/cvs/pkgs"
|
||||
|
||||
txt() {
|
||||
echo "Usage: $0 module dist"
|
||||
echo "module is package name"
|
||||
echo "dist is Fedora version (F-??/devel)"
|
||||
echo
|
||||
echo "In case of other errors, try to download in a Fedora mirror or change file format extension."
|
||||
}
|
||||
|
||||
txt2() {
|
||||
echo "Select correct dist: F-8, F-9, F-10, F11, F-12, F-13 or devel"
|
||||
}
|
||||
|
||||
if [ -z "${module}" ] ;then
|
||||
txt
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "${2}" in
|
||||
F-8|F-9|F-10|F-11|F-12|F-13|devel)
|
||||
dist="${2}"
|
||||
;;
|
||||
*)
|
||||
txt2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Downloading from ${module}/${dist}"
|
||||
|
||||
tmp=$(mktemp -d)
|
||||
|
||||
trap cleanup EXIT
|
||||
cleanup() {
|
||||
set +e
|
||||
[ -z "${tmp}" -o ! -d "${tmp}" ] || rm -rf "${tmp}"
|
||||
}
|
||||
|
||||
unset CDPATH
|
||||
pwd=$(pwd)
|
||||
|
||||
pushd "${tmp}"
|
||||
export CVSROOT="${fedoraroot}"
|
||||
cvs co ${module}/${dist}/
|
||||
cd ${module}/${dist}
|
||||
if [ -f "${sarchive}" ] ;then
|
||||
mv "${sarchive}" "${pwd}"/
|
||||
else
|
||||
if [ -n "${sarchive}" ] ;then
|
||||
mv sources sources.tmp
|
||||
grep "${sarchive}" sources.tmp > sources
|
||||
fi
|
||||
make sources
|
||||
for source in $(awk '{print $2}' sources) ;do
|
||||
mv "${source}" "${pwd}"/
|
||||
done
|
||||
fi
|
||||
popd >/dev/null
|
|
@ -1,12 +0,0 @@
|
|||
chrpath|-----handy-ruler------------------------------------------------------|
|
||||
chrpath: chrpath (Modify rpath of compiled programs)
|
||||
chrpath:
|
||||
chrpath: chrpath allows you to modify the dynamic library load path (rpath) of
|
||||
chrpath: compiled programs. Currently, only removing and modifying the rpath
|
||||
chrpath: is supported.
|
||||
chrpath:
|
||||
chrpath: ftp://ftp.hungry.com/pub/hungry/chrpath/
|
||||
chrpath:
|
||||
chrpath:
|
||||
chrpath: Packager: _PACKAGER on _BUILD_DATE
|
||||
chrpath:
|
|
@ -1,73 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
OUTPUT=/tmp
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
VERSION=$(date +%Y.%m.%d_%H.%M)
|
||||
|
||||
DOCS="ChangeLog INSTALL LICENSE README.rst doc/ editors/"
|
||||
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS="-fPIC -O2"
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
git clone http://github.com/regit/coccigrep.git $REPOSITORIES/$PRGNAM
|
||||
else
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
|
||||
# installation
|
||||
python ./setup.py install --root=$PKG
|
||||
|
||||
mkdir -p mkdir -p $PKG/usr/share/emacs/site-lisp/
|
||||
cp editors/*.el $PKG/usr/share/emacs/site-lisp/
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -R $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Semantic grep for the C language)
|
||||
$PRGNAM:
|
||||
$PRGNAM: coccigrep is a semantic grep for the C language based on coccinelle
|
||||
$PRGNAM: (http://coccinelle.lip6.fr). It can be used to find where a given structure
|
||||
$PRGNAM: is used in code files. coccigrep depends on the spatch program which comes
|
||||
$PRGNAM: with coccinelle.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://home.regit.org/software/coccigrep/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,102 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=git_$(date +%Y.%m.%d_%H.%M)
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
)
|
||||
|
||||
if [ ! -e $REPOSITORY ] ; then
|
||||
mkdir -p $(dirname $REPOSITORY)
|
||||
( cd $(dirname $REPOSITORY)
|
||||
git clone "http://github.com/Orc/discount.git" $PRGNAM
|
||||
)
|
||||
fi
|
||||
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
|
||||
# Preparation
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Configuration
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
./configure.sh \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--libdir=$PREFIX/lib$(echo "$ARCH" | grep -o "64")
|
||||
)
|
||||
|
||||
# Building
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make
|
||||
)
|
||||
|
||||
# Installation
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
mkdir -p $PKG$PREFIX/{bin,lib$(echo "$ARCH" | grep -o "64")}
|
||||
make install DESTDIR=$PKG
|
||||
rm -fr $PKG$PREFIX/include
|
||||
)
|
||||
|
||||
# Cleaning
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find ./man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Packaging
|
||||
( cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (C markdown implementation)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.pell.portland.or.us/~orc/Code/markdown/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||
)
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
PRGNAM=fet
|
||||
VERSION=${VERSION:-5.37.2}
|
||||
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o 64)
|
||||
|
||||
CWD=$(pwd)
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=${PKG:-$TMP/pkg-$PRGNAM}
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# Cleaning
|
||||
rm -fr $TMP/$PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
|
||||
[ ! -e $TMP/ ] && mkdir -p $TMP
|
||||
|
||||
# Fetching sources
|
||||
cd $TMP
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && \
|
||||
wget -c https://lalescu.ro/liviu/fet/download/$PRGNAM-$VERSION.tar.bz2 -O $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
|
||||
# Preparation
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Building
|
||||
qmake-qt5
|
||||
make
|
||||
|
||||
# Installation
|
||||
make install INSTALL_ROOT=$PKG
|
||||
|
||||
mv $PKG$PREFIX/share/man $PKG$PREFIX/
|
||||
|
||||
# Cleaning
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find ./man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Packaging
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Free Timetabling Software)
|
||||
$PRGNAM:
|
||||
$PRGNAM: FET is open source free software for automatically scheduling the
|
||||
$PRGNAM: timetable of a school, high-school or university. It uses a fast
|
||||
$PRGNAM: and efficient timetabling algorithm. It is licensed under the GNU
|
||||
$PRGNAM: Affero General Public License version 3 or later.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://lalescu.ro/liviu/fet/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,81 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-051010}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=1
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS=" -O "
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
[ ! -e $CWD/${PRGNAM}_src-${VERSION}.tgz ] && wget -c http://heanet.dl.sourceforge.net/project/${PRGNAM}/${PRGNAM}-src/${VERSION}/${PRGNAM}_src-${VERSION}.tgz -O $CWD/${PRGNAM}_src-${VERSION}.tgz
|
||||
cd $TMP/
|
||||
tar xf $CWD/${PRGNAM}_src-${VERSION}.tgz
|
||||
cd ${PRGNAM}
|
||||
|
||||
# installation
|
||||
./configure \
|
||||
--prefix=$PREFIX
|
||||
|
||||
make
|
||||
|
||||
sed -i "s|$PREFIX|$PKG$PREFIX|g" Makefile
|
||||
|
||||
mkdir -p $PKG$PREFIX/{bin,man}
|
||||
|
||||
make install
|
||||
cp *.1 $PKG$PREFIX/man
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM/
|
||||
cp -r LICENSE README $PKG$PREFIX/doc/$PRGNAM/
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
find $PKG -name \.git\* -exec rm -fr {} \;
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
# Strip binaries
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (A melange of mac and unix font)
|
||||
$PRGNAM:
|
||||
$PRGNAM: A series of programs to interconvert between mac fonts (and FONDs) and unix font formats.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://fondu.sourceforge.net/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,87 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=1
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS=" -O "
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ ! -e $REPOSITORY ]; then
|
||||
git clone https://github.com/Grive/grive.git $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM
|
||||
|
||||
cd $TMP/$PRGNAM
|
||||
|
||||
# configuration
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX=$PREFIX \
|
||||
-DSYSCONFDIR=/etc \
|
||||
.
|
||||
|
||||
# compilation
|
||||
make -j3
|
||||
|
||||
# installation
|
||||
make install DESTDIR=$PKG
|
||||
mv $PKG$PREFIX/share/man $PKG$PREFIX
|
||||
rm -fr $PKG$PREFIX/share/
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
find $PKG -name \.git\* -exec rm -fr {} \;
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
# Strip binaries
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (an open source Linux client for Google Drive)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Grive can be considered still beta quality. It simply downloads all the files in your
|
||||
$PRGNAM: Google Drive into the current directory. After you make some changes to the local files, run
|
||||
$PRGNAM: grive again and it will upload your changes back to your Google Drive. New files created locally
|
||||
$PRGNAM: Currently Grive will NOT destroy any of your files: it will only move the files to a
|
||||
$PRGNAM: directory named .trash or put them in the Google Drive trash. You can always recover them.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.lbreda.com/grive/start
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,80 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
PRGNAM=httrack
|
||||
VERSION=3.45.1
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "64")
|
||||
|
||||
CWD=$(pwd)
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
rm -fr $TMP/$PRGNAM-* $PKG
|
||||
|
||||
# Fetching sources
|
||||
cd $TMP
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && wget -c "http://download.httrack.com/cserv.php3?File=httrack.tar.gz" -O $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
|
||||
# Preparation
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Building
|
||||
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--libdir=$PREFIX/lib$LIBSUFFIX
|
||||
|
||||
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
|
||||
make
|
||||
|
||||
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
# Cleaning
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Packaging
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (offline browser utility)
|
||||
$PRGNAM:
|
||||
$PRGNAM: It allows you to download a World Wide Web site from the Internet to a local
|
||||
$PRGNAM: directory, building recursively all directories, getting HTML, images, and
|
||||
$PRGNAM: other files from the server to your computer. HTTrack arranges the original
|
||||
$PRGNAM: site's relative link-structure.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.httrack.com/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,94 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
FLTK=${FLTK:=YES}
|
||||
|
||||
PRGNAM=nut
|
||||
VERSION=${VERSION:-19.2}
|
||||
|
||||
BUILD=${BUILD:-3}
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o 64)
|
||||
|
||||
CWD=$(pwd)
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=${PKG:-$TMP/pkg-$PRGNAM}
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# Cleaning
|
||||
rm -fr $TMP/$PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
|
||||
[ ! -e $TMP/ ] && mkdir -p $TMP
|
||||
|
||||
# Fetching sources
|
||||
cd $TMP
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && \
|
||||
wget -c http://nchc.dl.sourceforge.net/project/$PRGNAM/$PRGNAM/$VERSION/$PRGNAM-$VERSION.tar.gz -O $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
|
||||
# Preparation
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Configuration
|
||||
sed -i "s|/usr/local/lib|$PREFIX/lib$LIBSUFFIX|g" Makefile fltk/Makefile
|
||||
|
||||
# Building
|
||||
make prefix=$PREFIX libdir=$PREFIX/lib$LIBSUFFIX/nut
|
||||
[ "x$FLTK" != "xNO" ] && make -C fltk prefix=$PREFIX libdir=$PREFIX/lib$LIBSUFFIX/nut
|
||||
|
||||
# Installation
|
||||
mkdir -p $PKG$PREFIX/{bin,lib$LIBSUFFIX/$PRGNAM,man/man1,doc/$PRGNAM}
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
cp $PRGNAM $PKG$PREFIX/bin
|
||||
if [ "x$FLTK" != "xNO" ]; then
|
||||
cp fltk/Nut $PKG$PREFIX/bin
|
||||
( cd $PKG$PREFIX/bin
|
||||
ln -s Nut $PRGNAM-fltk
|
||||
)
|
||||
fi
|
||||
cp $PRGNAM.1 $PKG$PREFIX/man/man1
|
||||
cp raw.data/* $PKG$PREFIX/lib$LIBSUFFIX/$PRGNAM
|
||||
cp $(ls | grep "[A-Z][^a-z]") nut.html nut.xpm $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
# Cleaning
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find ./man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Packaging
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (open-source free nutrition software)
|
||||
$PRGNAM:
|
||||
$PRGNAM: $PRGNAM, records what you eat and analyzes your meals for nutrient
|
||||
$PRGNAM: levels in terms of the "Daily Value" or DV which is the standard for
|
||||
$PRGNAM: food labeling in the US. The program uses the free food composition
|
||||
$PRGNAM: database from the USDA.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://nut.sourceforge.net/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,178 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# offlineimap.SlackBuild is free software; you can redistribute
|
||||
# it and/or modify it under the terms of the GNU General Public License as
|
||||
# published by the Free Software Foundation; either version 2 of the License,
|
||||
# or any later version.
|
||||
#
|
||||
# offlineimap.SlackBuild is distributed in the hope that it will
|
||||
# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||
# Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
#
|
||||
# slackbuild for offlineimap, by Silvio Rhatto
|
||||
# requires:
|
||||
# tested: offlineimap-6.2.0
|
||||
#
|
||||
|
||||
# Look for slackbuildrc
|
||||
if [ -f ~/.slackbuildrc ]; then
|
||||
source ~/.slackbuildrc
|
||||
elif [ -f /etc/slackbuildrc ]; then
|
||||
source /etc/slackbuildrc
|
||||
fi
|
||||
|
||||
# Set variables
|
||||
CWD="$(pwd)"
|
||||
SRC_NAME="offlineimap"
|
||||
PKG_NAME="offlineimap"
|
||||
ARCH=${ARCH:=x86_64}
|
||||
SRC_VERSION=${VERSION:=6.2.0}
|
||||
PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')"
|
||||
BUILD=${BUILD:=1gwh}
|
||||
SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME
|
||||
TAG=gwh
|
||||
TMP=${TMP:=/tmp}
|
||||
PKG=${PKG:=$TMP/pkg-$PKG_NAME}
|
||||
REPOS=${REPOS:=$TMP}
|
||||
PREFIX=${PREFIX:=/usr}
|
||||
PKG_WORK="$TMP/$SRC_NAME"
|
||||
CONF_OPTIONS=${CONF_OPTIONS:=""}
|
||||
NUMJOBS=${NUMJOBS:=""}
|
||||
|
||||
# Set system libraries' path and optmization flags based on $ARCH
|
||||
LIBDIR="$PREFIX/lib"
|
||||
|
||||
if [ "$ARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
|
||||
elif [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$ARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIR="$PREFIX/lib64"
|
||||
LDFLAGS="-L/lib64 -L/usr/lib64"
|
||||
fi
|
||||
|
||||
# Set error codes (used by createpkg)
|
||||
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
|
||||
ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
|
||||
ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
|
||||
ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
|
||||
|
||||
# Clean up any leftovers of previous builds
|
||||
rm -rf "$PKG_WORK" 2> /dev/null
|
||||
rm -rf "$PKG" 2> /dev/null
|
||||
|
||||
# Create directories if necessary
|
||||
mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR
|
||||
mkdir -p "$PKG" || exit $ERROR_MKDIR
|
||||
mkdir -p "$REPOS" || exit $ERROR_MKDIR
|
||||
mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR
|
||||
|
||||
# Dowload source if necessary
|
||||
SRC="$SRC_NAME"_"$SRC_VERSION.tar.gz"
|
||||
URL="http://ftp.de.debian.org/debian/pool/main/o/offlineimap/$SRC"
|
||||
|
||||
if [ ! -s "$SRC_DIR/$SRC" ] || ! gunzip -t "$SRC_DIR/$SRC" 2> /dev/null; then
|
||||
wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET
|
||||
fi
|
||||
|
||||
# Untar
|
||||
cd "$PKG_WORK"
|
||||
tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR
|
||||
PKG_SRC="$PWD/`ls -l | awk '/^d/ { print $NF }'`"
|
||||
cd "$PKG_SRC"
|
||||
|
||||
# Patch source
|
||||
patches="
|
||||
$PKG_NAME.diff $PKG_NAME-$PKG_VERSION.diff
|
||||
$PKG_NAME-$PKG_VERSION-$ARCH.diff $PKG_NAME-$ARCH.diff"
|
||||
for patch in $patches; do
|
||||
if [ -f "$CWD/$patch" ]; then
|
||||
patch -Np1 < "$CWD/$patch" || exit $ERROR_PATCH
|
||||
elif [ -f "$CWD/patches/$patch" ]; then
|
||||
patch -Np1 < "$CWD/patches/$patch" || exit $ERROR_PATCH
|
||||
elif [ -f "$CWD/$patch.gz" ]; then
|
||||
gzip -dc "$CWD/$patch.gz" | patch -Np1 || exit $ERROR_PATCH
|
||||
elif [ -f "$CWD/patches/$patch.gz" ]; then
|
||||
gzip -dc "$CWD/patches/$patch.gz" | patch -Np1 || exit $ERROR_PATCH
|
||||
fi
|
||||
done
|
||||
|
||||
if echo [[PATCH URLS]] | grep -q -v "PATCH URLS"; then
|
||||
for patch_url in [[PATCH URLS]]; do
|
||||
patch="`basename $patch_url`"
|
||||
if [ ! -s "$SRC_DIR/$patch" ]; then
|
||||
wget "$patch_url" -O "$SRC_DIR/$patch" || exit $ERROR_WGET
|
||||
fi
|
||||
if [ "`basename $patch .gz`" != "$patch" ]; then
|
||||
gzip -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH
|
||||
elif [ "`basename $patch .bz2`" != "$patch" ]; then
|
||||
bzip2 -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH
|
||||
else
|
||||
patch -Np1 < "$SRC_DIR/$patch" || exit $ERROR_PATCH
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Build and install package
|
||||
python setup.py build install --root=$PKG
|
||||
|
||||
# Strip binaries
|
||||
( cd "$PKG"
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Install documentation
|
||||
DOCS="COPYING COPYRIGHT FAQ.html README UPGRADING"
|
||||
mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR
|
||||
for doc in $DOCS; do
|
||||
if [ -f "$doc" ]; then
|
||||
cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION"
|
||||
fi
|
||||
done
|
||||
|
||||
# Add package description (slack-desc)
|
||||
mkdir -p "$PKG/install" || exit $ERROR_MKDIR
|
||||
cat << EODESC > "$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--------------------------------------------------|
|
||||
offlineimap: offlineimap
|
||||
offlineimap:
|
||||
offlineimap: OfflineIMAP is a tool to simplify your e-mail reading.
|
||||
offlineimap: With OfflineIMAP, you can read the same mailbox from multiple
|
||||
offlineimap: computers. You get a current copy of your messages on each computer,
|
||||
offlineimap: and changes you make one place will be visible on all other systems.
|
||||
offlineimap: For instance, you can delete a message on your home computer, and it
|
||||
offlineimap: will appear deleted on your work computer as well. OfflineIMAP is
|
||||
offlineimap: also useful if you want to use a mail reader that does not have IMAP
|
||||
offlineimap: support, has poor IMAP support, or does not provide disconnected
|
||||
offlineimap: operation.
|
||||
EODESC
|
||||
|
||||
# Build the package
|
||||
cd "$PKG"
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
|
||||
|
||||
# Delete source and build directories if requested
|
||||
if [ "$CLEANUP" == "yes" ]; then
|
||||
rm -rf "$PKG_WORK" "$PKG"
|
||||
fi
|
|
@ -1,106 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=git_$(date +%Y.%m.%d_%H.%M)
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
)
|
||||
|
||||
if [ ! -e $REPOSITORY ] ; then
|
||||
mkdir -p $(dirname $REPOSITORY)
|
||||
( cd $(dirname $REPOSITORY)
|
||||
git clone "git://git.savannah.gnu.org/parallel.git" $PRGNAM
|
||||
)
|
||||
fi
|
||||
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
|
||||
# Preparation
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Configuration
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--libdir=$PREFIX/lib$(echo "$ARCH" | grep -o "64") \
|
||||
--docdir=$PREFIX/doc/$PRGNAM
|
||||
)
|
||||
|
||||
# Building
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make
|
||||
)
|
||||
|
||||
# Installation
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
mkdir -p $PKG$PREFIX/{bin,lib$(echo "$ARCH" | grep -o "64")}
|
||||
make install DESTDIR=$PKG
|
||||
rm -fr $PKG$PREFIX/include
|
||||
)
|
||||
|
||||
# Cleaning
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find ./man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Packaging
|
||||
( cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (build and execute shell command lines from standard input in parallel)
|
||||
$PRGNAM:
|
||||
$PRGNAM: GNU parallel is a shell tool for executing jobs in parallel locally or using
|
||||
$PRGNAM: remote computers. A job is typically a single command or a small script that
|
||||
$PRGNAM: has to be run for each of the lines in the input. The typical input is a list
|
||||
$PRGNAM: of files, a list of hosts, a list of users, a list of URLs, or a list of table
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://savannah.gnu.org/projects/parallel/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||
)
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=1
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS=" -O "
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ ! -e $REPOSITORY ]; then
|
||||
git clone http://git.zx2c4.com/password-store $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM
|
||||
|
||||
cd $TMP/$PRGNAM
|
||||
|
||||
# installation
|
||||
make install DESTDIR=$PKG
|
||||
mv $PKG$PREFIX/share/man $PKG$PREFIX/
|
||||
rm -fr $PKG$PREFIX/share
|
||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM/
|
||||
cp -r COPYING INSTALL README contrib/ $PKG$PREFIX/doc/$PRGNAM/
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
find $PKG -name \.git\* -exec rm -fr {} \;
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
# Strip binaries
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (the standard unix password manager)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Password management should be simple and follow Unix philosophy. With pass,
|
||||
$PRGNAM: each password lives inside of a gpg encrypted file whose filename is the
|
||||
$PRGNAM: title of the website or resource that requires the password. These encrypted
|
||||
$PRGNAM: files may be organized into meaningful folder hierarchies, copied from
|
||||
$PRGNAM: computer to computer, and, in general, manipulated using standard command
|
||||
$PRGNAM: line file management utilities.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://zx2c4.com/projects/password-store/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,107 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +%Y.%m.%d_%H.%M)
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
rm -fr $TMP/$PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
mkdir -p $TMP
|
||||
|
||||
if [ ! -e $REPOSITORY ] ; then
|
||||
mkdir -p $(dirname $REPOSITORY)
|
||||
hg clone "https://bitbucket.org/rsc/plan9port" $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
hg pull -u
|
||||
)
|
||||
fi
|
||||
|
||||
# Preparation
|
||||
mkdir -p $PKG/opt
|
||||
cp -R $REPOSITORY $PKG/opt/$PRGNAM
|
||||
cd $PKG/opt/$PRGNAM
|
||||
|
||||
rm -fr .hg*
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Building
|
||||
./INSTALL -b
|
||||
|
||||
# Installation
|
||||
cd dist
|
||||
../bin/mk man
|
||||
cd ..
|
||||
cp lib/moveplan9.sh lib/moveplan9.sh.slackinstall_$VERSION
|
||||
sed -i 's|new=`cleanname $PLAN9`|new=/opt/plan9port|g' lib/moveplan9.sh.slackinstall_$VERSION
|
||||
sh ./lib/moveplan9.sh.slackinstall_$VERSION
|
||||
rm lib/moveplan9.sh.slackinstall_$VERSION
|
||||
|
||||
mkdir -p $PKG/etc/profile.d
|
||||
cat <<EOF > $PKG/etc/profile.d/$PRGNAM.sh
|
||||
#!/bin/sh
|
||||
PLAN9=/opt/plan9port
|
||||
PATH=\$PATH:\${PLAN9}
|
||||
MANPATH=\$MANPATH:\${PLAN9}/man
|
||||
export PLAN9 PATH MANPATH
|
||||
EOF
|
||||
chmod +x $PKG/etc/profile.d/$PRGNAM.sh
|
||||
cat <<EOF > $PKG/etc/profile.d/$PRGNAM.csh
|
||||
#!/bin/csh
|
||||
setenv PLAN9 /opt/plan9port
|
||||
setenv PATH \${PATH}:\${PLAN9}/bin
|
||||
setenv MANPATH \${MANPATH}:\${PLAN9}/man
|
||||
EOF
|
||||
chmod +x $PKG/etc/profile.d/$PRGNAM.csh
|
||||
|
||||
# Cleaning
|
||||
find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find $PKG$PREFIX/man/man? -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root $PKG
|
||||
|
||||
# Packaging
|
||||
cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Plan 9 from User Space)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Plan 9 from User Space (aka plan9port) is a port of many Plan 9 programs
|
||||
$PRGNAM: from their native Plan 9 environment to Unix-like operating systems.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://swtch.com/plan9port/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||
|
|
@ -1,79 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=1
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS=" -O "
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ ! -e $REPOSITORY ]; then
|
||||
svn checkout http://pwauth.googlecode.com/svn/trunk/pwauth $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
svn update
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM
|
||||
|
||||
cd $TMP/$PRGNAM
|
||||
|
||||
# installation
|
||||
make
|
||||
mkdir -p $PKG$PREFIX/sbin/
|
||||
mv pwauth unixgroup $PKG$PREFIX/sbin/
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
find $PKG -name \.git\* -exec rm -fr {} \;
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
# Strip binaries
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (A Unix Authentication Tool)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Pwauth is an authenticator designed to be used with mod_auth_external
|
||||
$PRGNAM: or mod_authnz_external and the Apache HTTP daemon to support reasonably
|
||||
$PRGNAM: secure web authentication out of the system password database on most
|
||||
$PRGNAM: versions of Unix.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://code.google.com/p/pwauth/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,82 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=trunk_$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
PREFIX=/usr
|
||||
|
||||
# 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 http://repo.or.cz/r/pwmd.git $REPOSITORY
|
||||
fi
|
||||
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
|
||||
cp -R $REPOSITORY $TMP/
|
||||
( cd $TMP/$PRGNAM
|
||||
#./autogen.sh
|
||||
autoreconf
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
)
|
||||
|
||||
# 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 (Password Manager Daemon)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Password Manager Daemon is a daemon that serves data to application via a
|
||||
$PRGNAM: socket. The data is stored in an encrypted XML file and the client must
|
||||
$PRGNAM: provide a key when opening and saving a file.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://benkibbey.wordpress.com/pwmd/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,55 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
ARCH=noarch
|
||||
BUILD=1
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM
|
||||
|
||||
mkdir -p $PKG$PREFIX/bin/
|
||||
|
||||
# mise en place
|
||||
[ ! -e $REPOSITORY ] && git clone https://github.com/thisredone/rb.git $REPOSITORY
|
||||
( cd $REPOSITORY && git pull )
|
||||
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
|
||||
|
||||
mkdir -p $PKG$PREFIX/bin/
|
||||
cp $REPOSITORY/rb $PKG$PREFIX/bin/rb
|
||||
chmod 0755 $PKG$PREFIX/bin/rb
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||
cp $REPOSITORY/LICENSE $REPOSITORY/README.md $PKG$PREFIX/doc/$PRGNAM/
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Turns Ruby into a versatile command line utility)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Replace most of the command line tools that you use to process
|
||||
$PRGNAM: text inside of the terminal.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://github.com/thisredone/rb
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,61 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
OUTPUT=/tmp
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
VERSION=$(date +%Y.%m.%d_%H.%M)
|
||||
|
||||
DOCS="LICENSE README.rst AUTHORS.rst"
|
||||
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS="-fPIC -O2"
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG$PREFIX/{bin,doc/$PRGNAM}
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
[ ! -e $REPOSITORIES/$PRGNAM ] && git clone https://github.com/guillaumechereau/regdel.git $REPOSITORIES/$PRGNAM
|
||||
( cd $REPOSITORIES/$PRGNAM && git pull )
|
||||
VERSION="$( cd $REPOSITORIES/$PRGNAM && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
|
||||
|
||||
cp -R $REPOSITORIES/$PRGNAM/* $PKG$PREFIX/doc/$PRGNAM
|
||||
mv $PKG$PREFIX/doc/$PRGNAM/$PRGNAM $PKG$PREFIX/bin/
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Ncurses based interface to ledger)
|
||||
$PRGNAM:
|
||||
$PRGNAM: regdel is to ledger what tig is to git.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://github.com/guillaumechereau/regdel
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,83 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
# default settings
|
||||
PRGNAM=sdcv
|
||||
ARCH=$(uname -m)
|
||||
VERSION=svn$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
DOCS="ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO"
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
rm -rf $PKG $TMP/$PRGNAM-$VERSION
|
||||
mkdir -p $PKG
|
||||
|
||||
cd $TMP
|
||||
|
||||
if [ ! -e $REPOSITORY ] ; then
|
||||
svn co https://sdcv.svn.sourceforge.net/svnroot/sdcv/trunk $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
svn update
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORY sdcv-$VERSION
|
||||
cd sdcv-$VERSION
|
||||
|
||||
zcat $CWD/sdcv_x86_64.patch.gz | patch -p1
|
||||
|
||||
autoreconf
|
||||
./configure \
|
||||
--libdir=/usr/lib$( [ $ARCH = "x86_64" ] && echo 64 ) \
|
||||
--mandir=/usr/man \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
mkdir -p $PKG/usr/doc/sdcv-$VERSION/
|
||||
cp $DOCS $PKG/usr/doc/sdcv-$VERSION/
|
||||
|
||||
cd $PKG
|
||||
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
cd $PKG
|
||||
mkdir -p install
|
||||
cat << EOF > 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 (Dictionaries search tool)
|
||||
$PRGNAM:
|
||||
$PRGNAM: You can find free (as in Freedom) dictionnaries at www.freedict.org
|
||||
$PRGNAM: Vietnamese dictionaries available at http://cctv.sf.net
|
||||
$PRGNAM: Others all over the Internet...
|
||||
$PRGNAM:
|
||||
$PRGNAM: see /usr/doc/$PRGNAM-$VERSION
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: for more informations.
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root $PKG
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,82 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
|
||||
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ ! -e $REPOSITORY ] ; then
|
||||
git clone http://github.com/phatina/simple-mtpfs.git $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
|
||||
cp -R $REPOSITORY $TMP/
|
||||
cd $TMP/$PRGNAM
|
||||
./autogen.sh
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
# move doc/ to the appropriate location
|
||||
mkdir -p $PKG$PREFIX/doc
|
||||
cp AUTHORS COPYING ChangeLog INSTALL NEWS README $PKG$PREFIX/doc
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
find $PKG$PREFIX/man -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 (Simple MTP fuse filesystem driver.)
|
||||
$PRGNAM:
|
||||
$PRGNAM: SIMPLE-MTPFS (Simple Media Transfer Protocol FileSystem) is a file
|
||||
$PRGNAM: system for Linux (and other operating systems with a FUSE
|
||||
$PRGNAM: implementation, such as Mac OS X or FreeBSD) capable of operating on
|
||||
$PRGNAM: files on MTP devices attached via USB to local machine. On the local
|
||||
$PRGNAM: computer where the SIMPLE-MTPFS is mounted, the implementation makes
|
||||
$PRGNAM: use of the FUSE (Filesystem in Userspace) kernel module. The practical
|
||||
$PRGNAM: effect of this is that the end user can seamlessly interact with MTP
|
||||
$PRGNAM: device files.
|
||||
$PRGNAM: https://github.com/phatina/simple-mtpfs/
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,113 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
PRGNAM=$(basename $(pwd))
|
||||
VERSION=1.64
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
||||
|
||||
CWD=$(pwd)
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
)
|
||||
|
||||
# Fetching sources
|
||||
( cd $TMP
|
||||
[ ! -e $PRGNAM-$VERSION ] \
|
||||
&& wget -c http://www.mathematik.uni-kl.de/~obachman/Texi2html/Distrib/$PRGNAM-$VERSION.tar.gz -O $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
)
|
||||
|
||||
# Preparation
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Configuration
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
./configure --prefix=$PREFIX --mandir=$PREFIX/man --infodir=$PREFIX/info
|
||||
)
|
||||
|
||||
# Building
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make
|
||||
)
|
||||
|
||||
# Installation
|
||||
mkdir -p $PKG$PREFIX/{bin,lib$LIBSUFFIX/$PRGNAM,man/man1}
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make install DESTDIR=$PKG
|
||||
)
|
||||
|
||||
# Cleaning
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
find $PKG$PREFIX/info -name dir -exec rm {} \;
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Packaging
|
||||
( cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
cd /usr/info
|
||||
[ -e dir ] && rm dir
|
||||
[ -e dir.gz ] && rm dir.gz
|
||||
[ -e dir.new ] && rm dir.new
|
||||
for file in \$(ls *.gz | grep -v ".*\-[0-9]\+\.gz")
|
||||
do
|
||||
install-info \$file ./dir
|
||||
done
|
||||
EOF
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
cd /usr/info
|
||||
[ -e dir ] && rm dir
|
||||
[ -e dir.gz ] && rm dir.gz
|
||||
[ -e dir.new ] && rm dir.new
|
||||
for file in \$(ls *.gz | grep -v ".*\-[0-9]\+\.gz")
|
||||
do
|
||||
install-info \$file ./dir
|
||||
done
|
||||
EOF
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (a Perl script that converts Texinfo to HTML)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.mathematik.uni-kl.de/~obachman/Texi2html/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||
)
|
||||
|
|
@ -1,84 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
|
||||
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# 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 http://github.com/ggreer/the_silver_searcher.git $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
|
||||
cp -R $REPOSITORY $TMP/
|
||||
cd $TMP/$PRGNAM
|
||||
aclocal
|
||||
autoconf
|
||||
autoheader
|
||||
automake --add-missing
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/man
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# move doc/ to the appropriate location
|
||||
mkdir -p $PKG$PREFIX/doc
|
||||
cp LICENSE NOTICE README.md $PKG$PREFIX/doc
|
||||
|
||||
# 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 (An attempt to make something better than ack.)
|
||||
$PRGNAM:
|
||||
$PRGNAM: It searches code about 3–5× faster than ack.
|
||||
$PRGNAM: It ignores file patterns from your .gitignore and .hgignore.
|
||||
$PRGNAM: If there are files in your source repo you don't want to search,
|
||||
$PRGNAM: just add their patterns to a .agignore file. *cough* extern *cough*
|
||||
$PRGNAM: The command name is 33% shorter than ack!
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://github.com/ggreer/the_silver_searcher
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,76 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=${VERSION:-trunk_$(date +"%Y.%m.%d_%H.%M")}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
|
||||
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ ! -e $REPOSITORY ] ; then
|
||||
git clone http://github.com/ginatrapani/todo.txt-cli.git $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
|
||||
cp -R $REPOSITORY $TMP/
|
||||
cd $TMP/$PRGNAM
|
||||
make
|
||||
mkdir -p $PKG$PREFIX/{bin/,doc/$PRGNAM/}
|
||||
mv todo.sh $PKG$PREFIX/bin/
|
||||
mv * $PKG$PREFIX/doc/$PRGNAM/
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
chmod +x $PKG$PREFIX/bin/*
|
||||
|
||||
# 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 (TODO.TXT Command Line Interface)
|
||||
$PRGNAM:
|
||||
$PRGNAM: A simple and extensible shell script for managing your todo.txt file.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://todotxt.com/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,51 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=1.1.5
|
||||
BUILD=1
|
||||
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
HOME=/home/gwh
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
REPOSITORIES=$HOME/projets/packages/repositories
|
||||
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
mkdir -p $TMP
|
||||
|
||||
[ -e $TMP/$PRGNAM-$VERSION ] && rm -fr $TMP/$PRGNAM-$VERSION
|
||||
[ -e $PKG ] && rm -fr $PKG
|
||||
|
||||
cd $TMP
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && wget -c "http://sk1project.org/dc.php?target=$PRGNAM-$VERSION.tar.gz" -O $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
python setup.py install --root $PKG
|
||||
|
||||
#mv $PKG/usr/share/man $PKG/usr
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install
|
||||
$PRGNAM: $PRGNAM (universal vector graphics translator)
|
||||
$PRGNAM:
|
||||
$PRGNAM: UniConvertor is a universal vector graphics translator. It is a command
|
||||
$PRGNAM: line tool which uses sK1 object model to convert one format to another.
|
||||
$PRGNAM: Development of the import/export modules for this program goes through
|
||||
$PRGNAM: different stages, quality and feature coverage are different among formats.
|
||||
$PRGNAM: UniConvetor is used in Inkscape and Scribus projects as external tool for
|
||||
$PRGNAM: CorelDraw files importing.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://sk1project.org/modules.php?name=Products&product=uniconvertor&op=download
|
||||
EOF
|
||||
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr - .)-$ARCH-$BUILD$TAG.txz
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
OUTPUT=/tmp
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
BRANCH=${BRANCH:-stable}
|
||||
VERSION=${BRANCH}_$(date +%Y.%m.%d_%H.%M)
|
||||
|
||||
DOCS="AUTHORS COPYING ChangeLog INSTALL README"
|
||||
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS="-fPIC -O2"
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
git clone git://git.symlink.me/pub/weboob/$BRANCH.git $REPOSITORIES/${PRGNAM}-$BRANCH
|
||||
else
|
||||
( cd $REPOSITORIES/${PRGNAM}-$BRANCH
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORIES/${PRGNAM}-$BRANCH $TMP/$PRGNAM-$VERSION
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
|
||||
# installation
|
||||
python ./setup.py install --root=$PKG
|
||||
|
||||
mv $PKG/usr/share/man $PKG/usr/
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -R $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# Compress man pages
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do
|
||||
ln -s $( readlink $i ).gz $i.gz ; rm $i
|
||||
done
|
||||
)
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (WEB Outside Of Browsers)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Weboob is a collection of applications able to interact with websites,
|
||||
$PRGNAM: without requiring the user to open them in a browser. It also provides
|
||||
$PRGNAM: well-defined APIs to talk to websites lacking one.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://weboob.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,88 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
PRGNAM=webrowse
|
||||
VERSION=1.7.0
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "64")
|
||||
|
||||
CWD=$(pwd)
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
)
|
||||
|
||||
# Fetching sources
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.tgz ] \
|
||||
&& wget -c http://www.cs.indiana.edu/~kinzler/$PRGNAM/$PRGNAM-$VERSION.tgz
|
||||
( cd $TMP
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tgz
|
||||
)
|
||||
|
||||
# Preparation
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Building
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make PERL=$(which perl)
|
||||
)
|
||||
|
||||
# Installation
|
||||
mkdir -p $PKG$PREFIX/{bin,man/man1}
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make install install.man BINDIR=$PKG$PREFIX/bin MANDIR=$PKG$PREFIX/man/man1
|
||||
)
|
||||
|
||||
# Cleaning
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Packaging
|
||||
( cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (web browsing tools )
|
||||
$PRGNAM:
|
||||
$PRGNAM: $PRGNAM is a tool for interfacing between a Netscape or Mozilla (or Mosaic)
|
||||
$PRGNAM: web browser and the rest of a Unix/X11 environment, via the `-remote` option.
|
||||
$PRGNAM: It can be used for convenient file or URL loading remote control, and for
|
||||
$PRGNAM: textual reference HTML markup.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.cs.indiana.edu/~kinzler/webrowse/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||
)
|
||||
|
|
@ -1,89 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
OUTPUT=/tmp/
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
VERSION=git$(date +%Y.%m.%d_%H.%M)
|
||||
|
||||
DOCS="AUTHORS MANIFEST examples/ CHANGES MANIFEST.SKIP README LICENSE TODO"
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
mkdir -p $REPOSITORIES
|
||||
( cd $REPOSITORIES
|
||||
git clone http://github.com/sukria/Dancer.git $PRGNAM
|
||||
)
|
||||
else
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
|
||||
# configuration
|
||||
perl Makefile.PL
|
||||
|
||||
# compilation
|
||||
make -j3 PREFIX=$PREFIX
|
||||
|
||||
# installation
|
||||
make install DESTDIR=$PKG
|
||||
mv $PKG$PREFIX/share/man $PKG$PREFIX/
|
||||
rm -fr $PKG$PREFIX/share/
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
cp -R $DOCS $PKG/usr/doc/$PRGNAM
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
# Strip binaries
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Perl Web 'sinatra-like' Web framework)
|
||||
$PRGNAM:
|
||||
$PRGNAM: The easiest way to write web applications in Perl.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: see /usr/doc/$PRGNAM-$VERSION for more details
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://perldancer.org/
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,56 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
mkdir -p $TMP
|
||||
|
||||
[ ! -e $REPOSITORY ] \
|
||||
&& git clone http://github.com/kivy/kivy.git $REPOSITORY \
|
||||
|| (cd $REPOSITORY; git pull)
|
||||
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
|
||||
python setup.py build
|
||||
python setup.py install --root=$PKG
|
||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||
cp -R AUTHORS README COPYING doc/ $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (RAD library)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Open source library for rapid development of applications
|
||||
$PRGNAM: that make use of innovative user interfaces, such as multi-touch apps.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://kivy.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,78 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x -e
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-1.4.0}
|
||||
ARCH=${ARCH:-java}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# do we have the sources?
|
||||
if [ ! -e $CWD/$PRGNAM-$VERSION.zip ] ; then
|
||||
( cd $CWD
|
||||
wget -c http://repo1.maven.org/maven2/org/clojure/clojure/$VERSION/clojure-$VERSION.zip
|
||||
)
|
||||
fi
|
||||
|
||||
# unpacking
|
||||
mkdir -p $PKG$PREFIX/libexec
|
||||
( cd $PKG$PREFIX/libexec
|
||||
unzip $CWD/${PRGNAM}-$VERSION.zip
|
||||
)
|
||||
|
||||
# compilation
|
||||
( cd $PKG$PREFIX/libexec/$PRGNAM-$VERSION
|
||||
ant
|
||||
)
|
||||
|
||||
# installation
|
||||
mkdir -p $PKG$PREFIX/{bin,doc/$PRGNAM-$VERSION}
|
||||
cat <<EOF > $PKG$PREFIX/bin/$PRGNAM
|
||||
#!/bin/sh
|
||||
java -jar $PREFIX/libexec/$PRGNAM-$VERSION/clojure.jar \$@
|
||||
EOF
|
||||
chmod +x $PKG$PREFIX/bin/$PRGNAM
|
||||
|
||||
cd $PKG$PREFIX/libexec/$PRGNAM-$VERSION
|
||||
mv doc/ *.html *.txt test/ $PKG$PREFIX/doc/$PRGNAM-$VERSION
|
||||
|
||||
rm *.xml #.gitignore
|
||||
rm -r src #classes
|
||||
|
||||
rm $PRGNAM.jar
|
||||
ln -s $PRGNAM-$VERSION.jar $PRGNAM.jar
|
||||
# rm $PRGNAM-sources.jar
|
||||
# ln -s $PRGNAM-sources-$VERSION.jar $PRGNAM-sources.jar
|
||||
# rm $PRGNAM-slim.jar
|
||||
# ln -s $PRGNAM-slim-$VERSION.jar $PRGNAM-slim.jar
|
||||
|
||||
# packaging
|
||||
cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (JVM targetting Lisp dialect)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Clojure is a dynamic programming language that targets the Java Virtual
|
||||
$PRGNAM: Machine (and the CLR ). It is designed to be a general-purpose language,
|
||||
$PRGNAM: combining the approachability and interactive development of a scripting
|
||||
$PRGNAM: language with an efficient and robust infrastructure for multithreaded
|
||||
$PRGNAM: programming.
|
||||
$PRGNAM:
|
||||
$PRGNAM: see $PREFIX/doc/$PRGNAM-$VERSION
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://clojure.org
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d - )-$ARCH-$BUILD$TAG.txz
|
|
@ -1,92 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
OUTPUT=/tmp
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=git$(date +%Y.%m.%d_%H.%M)
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
NUMJOBS=${NUMJOBS:-" -j2 "}
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
cd $TMP
|
||||
if [ -e $CWD/$PRGNAM-$VERSION.$EXT ] ; then
|
||||
tar xf $CWD/$PRGNAM-$VERSION.$EXT
|
||||
else
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
git clone http://github.com/jashkenas/coffee-script.git $REPOSITORIES/$PRGNAM
|
||||
fi
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
git pull
|
||||
)
|
||||
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
|
||||
fi
|
||||
|
||||
cd $PRGNAM-$VERSION || exit 1
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 -i "s|#{base}/lib/coffee-script|#{base}/lib$LIBDIRSUFFIX/coffee-script|g" Cakefile
|
||||
|
||||
./bin/cake --prefix $PKG$PREFIX install
|
||||
|
||||
( cd $PKG$PREFIX/bin
|
||||
rm cake coffee
|
||||
ln -s ../lib$(echo $ARCH | grep -o 64)/coffee-script/bin/coffee
|
||||
ln -s ../lib$(echo $ARCH | grep -o 64)/coffee-script/bin/cake
|
||||
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mv LICENSE README* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Programming language)
|
||||
$PRGNAM:
|
||||
$PRGNAM: CoffeeScript is a little language that compiles into JavaScript.
|
||||
$PRGNAM: Think of it as JavaScript's less ostentatious kid brother — the same genes,
|
||||
$PRGNAM: roughly the same height, but a different sense of style. Apart from a
|
||||
$PRGNAM: handful of bonus goodies, statements in CoffeeScript correspond one-to-one
|
||||
$PRGNAM: with their equivalent in JavaScript, it's just another way of saying it.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://jashkenas.github.com/coffee-script/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||
|
|
@ -1,156 +0,0 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# by: H4kTeUr - http://www.slackbuilds.net < h4kteur at slackbuilds dot net >
|
||||
# Copyright 2007, 2008 H4kTeUr. All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this software, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this software 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.
|
||||
#
|
||||
# Latest ctags sourcecode is available at http://ctags.sourceforge.net
|
||||
|
||||
set -e
|
||||
CWD=$(pwd)
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp}
|
||||
PKG=${PKG:-$TMP/pkg-ctags}
|
||||
OUT=${OUT:-$TMP/build}
|
||||
|
||||
VERSION=${VERSION:-5.8}
|
||||
|
||||
# target
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
TARGET=${TARGET:-$(uname -m)}
|
||||
BUILD=${BUILD:-1gwh}
|
||||
|
||||
# set tarball download link
|
||||
SOURCE=${SOURCE:-http://switch.dl.sourceforge.net/sourceforge/ctags/ctags-$VERSION.tar.gz}
|
||||
ARCHIVE=$(basename $SOURCE)
|
||||
|
||||
# sanity checks
|
||||
if [ ! -d $TMP ]; then
|
||||
mkdir -p $TMP
|
||||
fi
|
||||
|
||||
# download the tarball if it's not found
|
||||
if [ ! -r $ARCHIVE ]; then
|
||||
echo "Downloading $ARCHIVE..."
|
||||
rm -f $ARCHIVE.part
|
||||
wget -vc $SOURCE -O $ARCHIVE.part
|
||||
mv $ARCHIVE.part $ARCHIVE
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
|
||||
elif [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
fi
|
||||
|
||||
# cleanup
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
|
||||
# extraction
|
||||
cd $TMP
|
||||
rm -rf ctags-$VERSION
|
||||
tar -xvf $CWD/ctags-$VERSION.tar.gz
|
||||
cd ctags-$VERSION
|
||||
|
||||
# make sure ownerships and permissions are sane
|
||||
chmod -R a-s,u+rw,go-w+r .
|
||||
|
||||
# configure
|
||||
CFLAGS=$SLKCFLAGS \
|
||||
CXXFLAGS=$SLKCFLAGS \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--build=$TARGET-slackware-linux
|
||||
|
||||
# build
|
||||
make -j3
|
||||
|
||||
# add the install directories
|
||||
mkdir -p $PKG/usr/bin
|
||||
mkdir -p $PKG/usr/man/man1
|
||||
|
||||
# install
|
||||
install -m 755 ctags $PKG/usr/bin
|
||||
install -m 644 ctags.1 $PKG/usr/man/man1
|
||||
|
||||
# strip binaries
|
||||
echo "Stripping binaries..."
|
||||
find $PKG -type f | xargs file | grep "LSB executable" | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || \
|
||||
echo "No binaries to strip..."
|
||||
|
||||
# compress and link manpages, if any
|
||||
echo "Compressing man pages..."
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
find $PKG/usr/man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
for manpage in $(find $PKG/usr/man -type l) ; do
|
||||
ln -s $(readlink $manpage).gz $manpage.gz
|
||||
rm -f $manpage
|
||||
done
|
||||
fi
|
||||
|
||||
# add a documentation directory
|
||||
echo "Adding documentation package..."
|
||||
mkdir -p $PKG/usr/doc/ctags-$VERSION
|
||||
install -p -m 644 \
|
||||
COPYING FAQ INSTALL NEWS README MAINTAINERS ctags.html EXTENDING.html\
|
||||
$PKG/usr/doc/ctags-$VERSION
|
||||
|
||||
# build the package
|
||||
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------------------------------------------------------|
|
||||
ctags: ctags (Generate tag files for source code)
|
||||
ctags:
|
||||
ctags: The ctags and etags programs (hereinafter collectively referred
|
||||
ctags: to as ctags, except where distinguished) generate an index (or "tag")
|
||||
ctags: file for a variety of language objects found in file(s).
|
||||
ctags: This tag file allows these items to be quickly and easily
|
||||
ctags: located by a text editor or other utility. A "tag" signifies
|
||||
ctags: a language object for which an index entry is available
|
||||
ctags: (or, alternatively, the index entry created for that object).
|
||||
ctags:
|
||||
ctags:
|
||||
EOF
|
||||
|
||||
cd $PKG
|
||||
|
||||
chown -R root.root .
|
||||
find . -perm 664 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
mkdir -p $OUT
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUT/ctags-$VERSION-$ARCH-$BUILD.tgz
|
||||
rm -rf $PKG
|
||||
rm -rf $TMP/ctags-$VERSION
|
|
@ -1,97 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o 64)
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
|
||||
# Fetching sources
|
||||
if [ ! -e $REPOSITORY ] ; then
|
||||
git clone http://github.com/clear-code/cutter.git $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
|
||||
|
||||
# Preparation
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
|
||||
# Configuration
|
||||
[ ! -e configure ] && ./autogen.sh #autoreconf
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--infodir=$PREFIX/info \
|
||||
--libdir=$PREFIX/lib$LIBSUFFIX \
|
||||
--libexecdir=$PREFIX/libexec \
|
||||
--docdir=$PREFIX/doc/$PRGNAM
|
||||
|
||||
# Building
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
make libdir=$PREFIX/lib$LIBSUFFIX
|
||||
|
||||
# Installation
|
||||
make install DESTDIR=$PKG libdir=$PREFIX/lib$LIBSUFFIX
|
||||
|
||||
# Cleaning
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
find $PKG$PREFIX/info -name "dir" -exec rm {} \;
|
||||
find $PKG$PREFIX/info -type f -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Packaging
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Unit Testing Framework for C and C++)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Cutter is a xUnit family Unit Testing Framework for C and C++.
|
||||
$PRGNAM:
|
||||
$PRGNAM: This is a list of features of Cutter:
|
||||
$PRGNAM: * easy to write tests.
|
||||
$PRGNAM: * outputs result with useful format for debugging.
|
||||
$PRGNAM: * tests are built as shared libraries.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://cutter.sourceforge.net/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l n -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,49 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
ARCH=${ARCH:-$(uname -m | grep -q 64 && echo "x86_64" || echo "i386")}
|
||||
VERSION=${VERSION:-$(curl -s https://api.github.com/repos/elm/compiler/releases/latest | grep tag_name | grep -o "[0-9.]*")}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-gwh}
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG/usr/bin $OUTPUT
|
||||
cd $PKG/usr/bin/
|
||||
|
||||
[ ! -e $CWD/$PRGNAM.tar.gz ] && wget -c https://github.com/elm/compiler/releases/download/${VERSION}/binaries-for-linux.tar.gz -O $CWD/$PRGNAM.tar.gz
|
||||
tar xvf $CWD/$PRGNAM.tar.gz
|
||||
|
||||
# Make sure top-level perms are correct:
|
||||
chmod 0755 $PKG/usr/bin/$PRGNAM
|
||||
|
||||
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 delightful language for reliable webapps.)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Generate JavaScript with great performance and no runtime
|
||||
$PRGNAM: exceptions.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: Homepage: https://elm-lang.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,74 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=20100318142033 #$(date +"%Y%m%d")
|
||||
BUILD=1
|
||||
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
# mise en place
|
||||
( cd $CWD
|
||||
[ ! -e $PRGNAM-src-$VERSION.tar.gz ] && wget -c http://www.$PRGNAM-scm.org/download/$PRGNAM-src-$VERSION.tar.gz
|
||||
)
|
||||
|
||||
( cd $TMP
|
||||
tar xf $CWD/$PRGNAM-src-$VERSION.tar.gz
|
||||
mv $PRGNAM-src-$VERSION $PRGNAM-$VERSION
|
||||
cd $PRGNAM-$VERSION
|
||||
|
||||
make
|
||||
|
||||
mkdir -p $PKG$PREFIX/bin $PKG$PREFIX/doc/
|
||||
mv $PRGNAM $PKG$PREFIX/bin
|
||||
cp -R www $PKG$PREFIX/doc/$PRGNAM
|
||||
)
|
||||
|
||||
# correction
|
||||
( cd $PKGl
|
||||
chown -R root:root *
|
||||
)
|
||||
|
||||
# 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 (distributed software configuration management)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Simple, high-reliability, distributed software configuration management
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.fossil-scm.org
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,112 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=4.6.0
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
DOCS="ABOUT-NLS AUTHORS ChangeLog COPYING* INSTALL NEWS README THANKS TODO"
|
||||
|
||||
SLCKFLAGS="-O2"
|
||||
case $ARCH in
|
||||
"x86_64")
|
||||
SLCKFLAGS="$SLCKFLAGS -fPIC"
|
||||
;;
|
||||
*)
|
||||
esac
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
( cd $TMP
|
||||
TMPVER=v$(echo $VERSION | tr . _)
|
||||
[ ! -e $CWD/gambc-$TMPVER-devel.tgz ] && \
|
||||
wget -c http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-$TMPVER-devel.tgz \
|
||||
-O $CWD/gambc-$TMPVER-devel.tgz
|
||||
tar xf $CWD/gambc-$TMPVER-devel.tgz
|
||||
mv gambc-$TMPVER-devel $PRGNAM-$VERSION
|
||||
)
|
||||
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
# configuration
|
||||
CCPFLAGS=$SLCKFLAGS \
|
||||
CFLAGS=$SLCKFLAGS \
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--infodir=$PREFIX/info \
|
||||
--docdir=$PREFIX/doc/$PRGNAM-$VERSION \
|
||||
--includedir=$PREFIX/include \
|
||||
--libdir=$PREFIX/lib$(echo $ARCH | grep -o 64) \
|
||||
--enable-single-host \
|
||||
--enable-gcc-opts
|
||||
|
||||
# compilation
|
||||
make -j3 PREFIX=$PREFIX
|
||||
# installation
|
||||
make install DESTDIR=$PKG
|
||||
# WTF .bat
|
||||
for b in $PKG$PREFIX/bin/*.bat ; do
|
||||
mv $b ${b%bat}sh
|
||||
done
|
||||
)
|
||||
|
||||
# correction
|
||||
chown -R root:root $PKG/*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
cp -R $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
)
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
[ -d $PKG/usr/info ] && find $PKG/usr/info -type f -name "*.info*" -exec gzip -9f {} \;
|
||||
[ -d $PKG/usr/info ] && rm $PKG/usr/info/dir
|
||||
|
||||
# Strip binaries
|
||||
find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
cd /usr/info
|
||||
[ -e dir ] && rm dir
|
||||
[ -e dir.gz ] && rm dir.gz
|
||||
[ -e dir.new ] && rm dir.new
|
||||
for file in \$(ls *.gz | grep -v ".*\-[0-9]\+\.gz")
|
||||
do
|
||||
install-info \$file ./dir
|
||||
done
|
||||
EOF
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Scheme programming system)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Gambit-C includes a Scheme interpreter and a Scheme compiler which can be used
|
||||
$PRGNAM: to build standalone executables. Because the compiler generates portable
|
||||
$PRGNAM: C code it is fairly easy to port to any platform with a decent C compiler.
|
||||
$PRGNAM:
|
||||
$PRGNAM: The Gambit-C system conforms to the R4RS, R5RS and IEEE Scheme standards.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
( cd $PKG
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d -)-$ARCH-$BUILD$TAG.txz
|
||||
)
|
|
@ -1,71 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
OUTPUT=/tmp
|
||||
CWD=$(pwd)
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
VERSION=$(date +%Y.%m%d_%H.%M)
|
||||
|
||||
ARCH='noarch'
|
||||
BUILD=1
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS="-fPIC -O2"
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
[ ! -e $REPOSITORY ] && git clone https://github.com/postmodern/gem_home $REPOSITORY
|
||||
( cd $REPOSITORY && git pull )
|
||||
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM
|
||||
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM
|
||||
cd $TMP/$PRGNAM
|
||||
|
||||
# installation
|
||||
make install PREFIX=$PKG$PREFIX DOC_DIR=$PKG$PREFIX/doc/$PRGNAM
|
||||
mv $PKG$PREFIX/share/man $PKG$PREFIX/man
|
||||
|
||||
# correction
|
||||
mkdir -p $PKG$PREFIX/bin/
|
||||
( cd $PKG$PREFIX/bin/
|
||||
ln -s ../share/gem_home/gem_home.sh gem_home
|
||||
chmod +x gem_home
|
||||
)
|
||||
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (A tool for changing your $GEM_HOME)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://github.com/postmodern/gem_home
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,117 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o 64)
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories/
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
|
||||
# Fetching sources
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
git clone git://git.savannah.gnu.org/gforth.git $REPOSITORIES/$PRGNAM
|
||||
else
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
|
||||
|
||||
# Preparation
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Configuration
|
||||
#sed -i "s|lib/|lib$LIBSUFFIX/|g" $(grep -l "lib/" * -r)
|
||||
[ ! -e configure ] && ./autogen.sh #autoreconf
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--infodir=$PREFIX/info \
|
||||
--libdir=$PREFIX/lib$LIBSUFFIX \
|
||||
--libexecdir=$PREFIX/libexec
|
||||
|
||||
# Building
|
||||
make libdir=$PREFIX/lib$LIBSUFFIX
|
||||
#make libdir=$PREFIX/lib$LIBSUFFIX doc
|
||||
#make libdir=$PREFIX/lib$LIBSUFFIX more
|
||||
|
||||
# Installation
|
||||
#make install install.TAGS DESTDIR=$PKG
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
mkdir -p $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM
|
||||
cp gforth.el* $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM
|
||||
|
||||
# mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||
# cp -R doc/*.{dvi,ps,pdf,txt} doc/gforth doc/vmgen AUTHORS BUGS COPYING* ChangeLog INSTALL* NEWS* README* TAGS ToDo $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
# Cleaning
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
find $PKG$PREFIX/info -name "dir" -exec rm {} \;
|
||||
find $PKG$PREFIX/info -type f -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Packaging
|
||||
mkdir install
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
cd /usr/info
|
||||
[ -e dir ] && rm dir
|
||||
[ -e dir.gz ] && rm dir.gz
|
||||
[ -e dir.new ] && rm dir.new
|
||||
for file in \$(ls *.gz | grep -v ".*\-[0-9]\+\.gz")
|
||||
do
|
||||
install-info \$file ./dir
|
||||
done
|
||||
EOF
|
||||
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (programming language)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Gforth is a fast and portable implementation of the ANS Forth language.
|
||||
$PRGNAM: It works nicely with the Emacs editor, offers some nice features such as
|
||||
$PRGNAM: input completion and history and a powerful locals facility, and it even
|
||||
$PRGNAM: has (the beginnings of) a manual. Gforth employs traditional implementation
|
||||
$PRGNAM: techniques: its inner interpreter is indirect or direct threaded.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.gnu.org/software/gforth
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l n -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
The Haskell Platform is a comprehensive, robust development for programming
|
||||
in Haskell, which not only makes it trivial to get up and running with a full
|
||||
Haskell development environment, but also provides a comprehensive, standard
|
||||
base for commercial and open source Haskell development that maximises
|
||||
interoperability and stability of your code.
|
||||
|
||||
This requires ghc, and hscolour is an optional requirement.
|
||||
|
||||
This is intended to be installed on a system that does not already have any
|
||||
haskell-related components (other than ghc & hscolour, of course) installed,
|
||||
so for best results (and chance of success), you should remove any of those
|
||||
before you try to build haskell-platform.
|
|
@ -1,98 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for The Haskell Platform
|
||||
#
|
||||
# Written by Jockey S. Kyd (jockey dot kyd at gmail dot com)
|
||||
# Public domain
|
||||
|
||||
PRGNAM=haskell-platform
|
||||
VERSION=${VERSION:-2013.2.0.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-gwh}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$(uname -m)" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$(uname -m) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX}
|
||||
|
||||
grep -v \ GHC_PACKAGE_PATH\= scripts/build.sh > scripts/build.sh.new
|
||||
mv scripts/build.sh.new scripts/build.sh
|
||||
chmod 755 scripts/build.sh
|
||||
make
|
||||
|
||||
# unsupport DESTDIR, so work around a bit
|
||||
patch -p1 < $CWD/not_update_pkg_db.diff
|
||||
sed -i "s:\(\./Setup copy\):\1 --destdir=$PKG:" scripts/install.sh
|
||||
make install
|
||||
|
||||
# collecting config files
|
||||
PKGCONFDIR=$PKG/usr/lib${LIBDIRSUFFIX}/ghc-${GHC_VERSION}/package.conf.d
|
||||
mkdir -p $PKGCONFDIR
|
||||
for pkg in $(cat packages/platform.packages); do
|
||||
pkg_conf=packages/${pkg}/${pkg}.conf
|
||||
if [ -f $pkg_conf ]; then
|
||||
mv $pkg_conf $PKGCONFDIR
|
||||
fi
|
||||
done
|
||||
|
||||
find $PKG | xargs 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
|
||||
if [ -d $PKG/usr/share/doc ]; then
|
||||
mv $PKG/usr/share/doc/* $PKG/usr/doc/
|
||||
rmdir $PKG/usr/share/doc
|
||||
fi
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
echo "$GHC_PKG recache" > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
|
@ -1,10 +0,0 @@
|
|||
PRGNAM="haskell-platform"
|
||||
VERSION="2012.2.0.0"
|
||||
HOMEPAGE="http://hackage.haskell.org/platform/"
|
||||
DOWNLOAD="http://lambda.haskell.org/platform/download/2012.2.0.0/haskell-platform-2012.2.0.0.tar.gz"
|
||||
MD5SUM="db09bc4279c0ef9e0beb5462b793413b"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Christoph Willing"
|
||||
EMAIL="c.willing@uq.edu.au"
|
||||
APPROVED="rworkman"
|
|
@ -1,28 +0,0 @@
|
|||
--- ./scripts/install.sh.orig 2010-12-01 09:49:32.169509005 +0800
|
||||
+++ ./scripts/install.sh 2010-12-01 09:58:02.551384509 +0800
|
||||
@@ -27,15 +27,16 @@
|
||||
./Setup register ${VERBOSE} --gen-pkg-config="${PKG}.conf" \
|
||||
|| die "Generating the registration information for the package ${PKG} failed"
|
||||
|
||||
- if [ -f ${PKG}.conf ]; then
|
||||
- if test "${USER_INSTALL}" = "YES"; then
|
||||
- GHC_PKG_DB="--user"
|
||||
- else
|
||||
- GHC_PKG_DB="--global"
|
||||
- fi
|
||||
- ${GHC_PKG} update ${GHC_PKG_DB} "${PKG}.conf" \
|
||||
- || die "Registering the package ${PKG} failed"
|
||||
- fi
|
||||
+# Uncomment to allow actually registering packages at building time
|
||||
+# if [ -f ${PKG}.conf ]; then
|
||||
+# if test "${USER_INSTALL}" = "YES"; then
|
||||
+# GHC_PKG_DB="--user"
|
||||
+# else
|
||||
+# GHC_PKG_DB="--global"
|
||||
+# fi
|
||||
+# ${GHC_PKG} update ${GHC_PKG_DB} "${PKG}.conf" \
|
||||
+# || die "Registering the package ${PKG} failed"
|
||||
+# fi
|
||||
|
||||
cd ../..
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
# 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------------------------------------------------------|
|
||||
haskell-platform: haskell-platform (The Haskell Platform)
|
||||
haskell-platform:
|
||||
haskell-platform: The Haskell Platform is a comprehensive, robust development for
|
||||
haskell-platform: programming in Haskell, which not only makes it trivial to get up
|
||||
haskell-platform: and running with a full Haskell development environment, but also
|
||||
haskell-platform: provides a comprehensive, standard base for both commercial and
|
||||
haskell-platform: open source Haskell development that maximises interoperability
|
||||
haskell-platform: and stability of your code.
|
||||
haskell-platform:
|
||||
haskell-platform: Homepage: http://hackage.haskell.org/platform/
|
||||
haskell-platform:
|
|
@ -1,71 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
BRANCH=trunk
|
||||
VERSION=$BRANCH$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
[ ! -e $REPOSITORIES ] && mkdir -p $REPOSITORIES
|
||||
( cd $REPOSITORIES
|
||||
if [ -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
svn update
|
||||
)
|
||||
else
|
||||
svn co https://javascriptlint.svn.sourceforge.net/svnroot/javascriptlint/$BRANCH $PRGNAM
|
||||
fi
|
||||
)
|
||||
|
||||
mkdir -p $TMP
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION && cp -R $REPOSITORIES/$PRGNAM $PRGNAM-$VERSION
|
||||
( cd $PRGNAM-$VERSION
|
||||
python setup.py build
|
||||
python setup.py install --root=$PKG
|
||||
)
|
||||
)
|
||||
|
||||
( cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Javascript Lint)
|
||||
$PRGNAM:
|
||||
$PRGNAM: With JavaScript Lint, you can check all your JavaScript source code for common
|
||||
$PRGNAM: mistakes without actually running the script or opening the web page.
|
||||
$PRGNAM:
|
||||
$PRGNAM: JavaScript Lint holds an advantage over competing lints because it is based on
|
||||
$PRGNAM: the JavaScript engine for the Firefox browser. This provides a robust framework
|
||||
$PRGNAM: that can not only check JavaScript syntax but also examine the coding techniques
|
||||
$PRGNAM: used in the script and warn against questionable practices.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.javascriptlint.com
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||
)
|
|
@ -1,114 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
PRGNAM=love
|
||||
VERSION=$(date +%Y.%m.%d_%H.%M) #0.7.0
|
||||
RELEASE_ID=20091214-301312c82b00
|
||||
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
||||
|
||||
CWD=$(pwd)
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories/
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
)
|
||||
|
||||
# Fetching sources
|
||||
( cd $TMP
|
||||
if [ -e $CWD/$PRGNAM-$VERSION-linux-src.tar.?z* ]; then
|
||||
tar xvf $CWD/$PRGNAM-$VERSION-linux-src.tar.?z*
|
||||
find . -type d -name "$PRGNAM-*-*" -exec mv {} $PRGNAM-$VERSION \;
|
||||
else
|
||||
[ ! -e $REPOSITORIES ] && mkdir -p $REPOSITORIES
|
||||
if [ -e $REPOSITORIES/$PRGNAM ]; then
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
hg pull -u
|
||||
)
|
||||
else
|
||||
hg clone http://bitbucket.org/rude/love $REPOSITORIES/$PRGNAM
|
||||
fi
|
||||
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
|
||||
fi
|
||||
)
|
||||
|
||||
# Preparation
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Configuration
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
[ ! -e ./configure ] && ./platform/unix/automagic
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--libdir=$PREFIX/lib64
|
||||
)
|
||||
|
||||
# Building
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make
|
||||
)
|
||||
|
||||
# Installation
|
||||
mkdir -p $PKG$PREFIX/{bin,lib$LIBSUFFIX/$PRGNAM,man/man1}
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make install DESTDIR=$PKG
|
||||
# cleaning empty directories
|
||||
rm -fr $PKG$PREFIX/man $PKG$PREFIX/lib64
|
||||
)
|
||||
|
||||
# Cleaning
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find ./man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
)
|
||||
|
||||
# Packaging
|
||||
( cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (lua 2D game engine)
|
||||
$PRGNAM:
|
||||
$PRGNAM: LÖVE is an unquestionably awesome 2D game engine, which allows rapid game
|
||||
$PRGNAM: development and prototyping in Lua.
|
||||
$PRGNAM:
|
||||
$PRGNAM: Requires a lot of libraries: mpg123-1.x, OpenAL, libmodplug, DevIL, PhysicsFS
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://love2d.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||
)
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +%Y.%m.%d_%H.%M)
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1gwh}
|
||||
|
||||
NUMJOBS=${NUMJOBS:-" -j4 "}
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
cd $TMP
|
||||
if [ -e $CWD/$PRGNAM-$VERSION.$EXT ] ; then
|
||||
tar xf $CWD/$PRGNAM-$VERSION.$EXT
|
||||
else
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
( cd $REPOSITORIES
|
||||
git clone http://github.com/martine/ninja.git $PRGNAM
|
||||
) ;
|
||||
fi
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
git pull
|
||||
)
|
||||
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
|
||||
fi
|
||||
|
||||
cd $PRGNAM-$VERSION || exit 1
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
./bootstrap.py
|
||||
|
||||
mkdir -p $PKG$PREFIX/bin
|
||||
cp ninja $PKG$PREFIX/bin
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
COPYING HACKING.md README doc/ misc/ \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Ninja is a small build system with a focus on speed.)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://martine.github.com/ninja/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD.txz
|
||||
|
|
@ -1,99 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +%Y.%m.%d_%H.%M)
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1gwh}
|
||||
|
||||
NUMJOBS=${NUMJOBS:-" -j4 "}
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
cd $TMP
|
||||
if [ -e $CWD/$PRGNAM-$VERSION.$EXT ] ; then
|
||||
tar xf $CWD/$PRGNAM-$VERSION.$EXT
|
||||
else
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
( cd $REPOSITORIES
|
||||
git clone http://github.com/joyent/node.git $PRGNAM
|
||||
) ;
|
||||
fi
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
git pull
|
||||
)
|
||||
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
|
||||
fi
|
||||
|
||||
cd $PRGNAM-$VERSION || exit 1
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
echo "$ARCH" | grep -q "64" && sed -i 's|${PREFIX}/lib|${PREFIX}/lib64|g' wscript tools/wafadmin/Tools/node_addon.py
|
||||
|
||||
./configure configure \
|
||||
--prefix=$PREFIX \
|
||||
--ninja
|
||||
|
||||
make $NUMJOBS PREFIX=$PREFIX
|
||||
|
||||
#sed -i "s|/usr|$PKG/usr|g" config.gypi
|
||||
|
||||
make install DESTDIR=$PKG
|
||||
mv $PKG$PREFIX/share/man $PKG$PREFIX
|
||||
rm -fr $PKG$PREFIX/share
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
AUTHORS COPYING HACKING INSTALL LICENSE NEWS README* docs/Wilber* \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Evented I/O for V8 javascript.)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Node's goal is to provide an easy way to build scalable network programs.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://nodejs.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD.txz
|
||||
|
|
@ -1,74 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
VERSION=1.5
|
||||
BUILD=1
|
||||
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
PREFIX=/usr
|
||||
PYTHON_SITE_PACKAGES=$PREFIX/lib$(echo $ARCH | grep -o 64)/python$(python --version 2>&1 | grep -o "[0-9]\.[0-9]")/site-packages
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG$PYTHON_SITE_PACKAGES $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.zip ] && wget -c http://www.cityinabottle.org/media/download/$PRGNAM-$VERSION.zip -O $CWD/$PRGNAM-$VERSION.zip
|
||||
|
||||
unzip $CWD/$PRGNAM-$VERSION.zip
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
cp -R examples $PKG$PREFIX/doc/$PRGNAM
|
||||
( cd nodebox/ext
|
||||
python setup.py build
|
||||
)
|
||||
echo $ARCH | grep -q "^i.86$" && ( cd nodebox/ext/psyco/src ; python setup.py build )
|
||||
cp -R nodebox $PKG$PYTHON_SITE_PACKAGES
|
||||
)
|
||||
|
||||
# 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 (2D animation library for Python)
|
||||
$PRGNAM:
|
||||
$PRGNAM: NodeBox for OpenGL is a free, cross-platform library for generating
|
||||
$PRGNAM: 2D animations with Python programming code. It is built on Pyglet
|
||||
$PRGNAM: and adopts the drawing API from NodeBox for Mac OS X
|
||||
$PRGNAM: (http://nodebox.net). It has built-in support for paths, layers,
|
||||
$PRGNAM: motion tweening, hardware-accelerated image effects, simple physics
|
||||
$PRGNAM: and interactivity.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.cityinabottle.org/nodebox/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,80 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
BRANCH=trunk
|
||||
VERSION=$BRANCH$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
[ ! -e $REPOSITORIES ] && mkdir -p $REPOSITORIES
|
||||
( cd $REPOSITORIES
|
||||
if [ -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
git pull
|
||||
)
|
||||
else
|
||||
git clone http://github.com/perl6/nqp.git nqp
|
||||
fi
|
||||
)
|
||||
|
||||
mkdir -p $TMP
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION && cp -R $REPOSITORIES/$PRGNAM $PRGNAM-$VERSION
|
||||
( cd $PRGNAM-$VERSION
|
||||
perl Configure.pl \
|
||||
--prefix=$PREFIX \
|
||||
--libdir=$PREFIX/lib$(echo $ARCH | grep -o 64) \
|
||||
--mandir=$PREFIX/man \
|
||||
--infodir=$PREFIX/info
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
mkdir -p $PKG/$PREFIX/doc/
|
||||
( cd $PKG/$PREFIX/doc
|
||||
ln -s ../share/doc/parrot $PRGNAM-$VERSION
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
( cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Not Quite Perl)
|
||||
$PRGNAM:
|
||||
$PRGNAM: a lightweight Perl 6-like environment for virtual machines. The key feature
|
||||
$PRGNAM: of NQP is that it's designed to be a very small environment (as compared with,
|
||||
$PRGNAM: say, perl6 or Rakudo) and is focused on being a high-level way to create
|
||||
$PRGNAM: compilers and libraries for virtual machines (such as the Parrot Virtual
|
||||
$PRGNAM: Machine [1]). Unlike a full-fledged implementation of Perl 6, NQP strives to
|
||||
$PRGNAM: have as small a runtime footprint as it can, while still providing a Perl 6
|
||||
$PRGNAM: object model and regular expression engine for the virtual machine.
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://github.com/perl6/nqp
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||
)
|
|
@ -1,59 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
OUTPUT=/tmp
|
||||
CWD=$(pwd)
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
VERSION=${VERSION:-$(curl -s https://api.github.com/repos/OmniSharp/omnisharp-roslyn/releases/latest | grep tag_name | grep -o "v[0-9.]*" | tr -d v)}
|
||||
|
||||
ARCH='mono'
|
||||
BUILD=1
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
[ ! -e $CWD/omnisharp-mono-${VERSION}.tar.gz ] && wget -c -O $CWD/omnisharp-mono-${VERSION}.tar.gz https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v${VERSION}/omnisharp-mono.tar.gz
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
|
||||
# installation
|
||||
mkdir -p $PKG/opt/$PRGNAM/
|
||||
( cd $PKG/opt/$PRGNAM/
|
||||
tar xvf $CWD/omnisharp-mono-${VERSION}.tar.gz
|
||||
)
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM ( OmniSharp based on roslyn workspaces)
|
||||
$PRGNAM:
|
||||
$PRGNAM: OmniSharp-Roslyn is a .NET development platform based on Roslyn workspaces.
|
||||
$PRGNAM: It provides project dependencies and language syntax to various IDE and
|
||||
$PRGNAM: plugins.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://github.com/OmniSharp/omnisharp-roslyn
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,80 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
BRANCH=trunk
|
||||
VERSION=$BRANCH$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
[ ! -e $REPOSITORIES ] && mkdir -p $REPOSITORIES
|
||||
( cd $REPOSITORIES
|
||||
if [ -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
git pull
|
||||
)
|
||||
else
|
||||
git clone http://github.com/parrot/parrot.git parrot
|
||||
fi
|
||||
)
|
||||
|
||||
mkdir -p $TMP
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION && cp -R $REPOSITORIES/$PRGNAM $PRGNAM-$VERSION
|
||||
( cd $PRGNAM-$VERSION
|
||||
perl Configure.pl \
|
||||
--prefix=$PREFIX \
|
||||
--libdir=$PREFIX/lib$(echo $ARCH | grep -o 64) \
|
||||
--mandir=$PREFIX/man \
|
||||
--infodir=$PREFIX/info
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
mkdir -p $PKG/$PREFIX/doc/
|
||||
( cd $PKG/$PREFIX/doc
|
||||
ln -s ../share/doc/parrot $PRGNAM-$VERSION
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
( cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Virtual Machine)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Parrot is a virtual machine designed to efficiently compile and execute
|
||||
$PRGNAM: bytecode for dynamic languages. Parrot currently hosts a variety of
|
||||
$PRGNAM: language implementations in various stages of completion, including Tcl,
|
||||
$PRGNAM: Javascript, Ruby, Lua, Scheme, PHP, Python, Perl 6, APL, and a .NET
|
||||
$PRGNAM: bytecode translator. Parrot is not about parrots, though we are rather
|
||||
$PRGNAM: fond of them for obvious reasons.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://parrot.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||
)
|
|
@ -1,83 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
PRGNAM=$(basename $CWD)
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/gwh}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
VERSION=${VERSION:-$(date +%Y.%m.%d_%H.%M)}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-gwh}
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
if [ ! -e $REPOSITORY ]; then
|
||||
git clone http://github.com/ariya/phantomjs.git $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
|
||||
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
#set the real version
|
||||
#VERSION=$(git rev-parse HEAD)
|
||||
|
||||
# launching tests hangs, so we don't run them -.-
|
||||
qmake
|
||||
make
|
||||
|
||||
mkdir -p $PKG$PREFIX/bin
|
||||
cp bin/* $PKG$PREFIX/bin
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM
|
||||
cp -a ChangeLog LICENSE.BSD README.md examples $PKG/usr/doc/$PRGNAM
|
||||
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (minimalistic headless WebKit-based JavaScript-driven tool)
|
||||
$PRGNAM:
|
||||
$PRGNAM: PhantomJS is a minimalistic, headless, WebKit-based, JavaScript-driven tool.
|
||||
$PRGNAM:
|
||||
$PRGNAM: It has native support for different web technologies: DOM handling,
|
||||
$PRGNAM: CSS selector, JSON, Canvas, SVG, and of course JavaScript.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://code.google.com/p/phantomjs/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,93 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:=5.3.5 }
|
||||
|
||||
BUILD=${BUILD:=1}
|
||||
|
||||
ARCH=${ARCH:=$(uname -m)}
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o 64)
|
||||
|
||||
TAG=${TAG:=gwh}
|
||||
OUTPUT=${OUTPUT:=/tmp}
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
PREFIX=${PREFIX:=/usr}
|
||||
|
||||
# Cleaning
|
||||
rm -fr $TMP/$PRGNAM-$VERSION $PKG
|
||||
mkdir -p $TMP
|
||||
cd $TMP
|
||||
|
||||
# Fetching sources
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION-src-unix.tgz ] && wget -c http://download.racket-lang.org/installers/$VERSION/$PRGNAM/$PRGNAM-$VERSION-src-unix.tgz -O $CWD/$PRGNAM-$VERSION-src-unix.tgz
|
||||
|
||||
tar xvf $CWD/$PRGNAM-$VERSION-src-unix.tgz
|
||||
|
||||
# Preparation
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
|
||||
# Configuration
|
||||
cd src
|
||||
sed -i "s|lib/|lib$LIBSUFFIX/|g" Makefile.in
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--infodir=$PREFIX/info \
|
||||
--libdir=$PREFIX/lib$LIBSUFFIX
|
||||
|
||||
# Building
|
||||
make
|
||||
|
||||
# Installation
|
||||
make install install.TAGS DESTDIR=$PKG
|
||||
|
||||
# Cleaning
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
find $PKG$PREFIX/info -name "dir" -exec rm {} \;
|
||||
find $PKG$PREFIX/info -type f -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Packaging
|
||||
mkdir install
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
cd /usr/info
|
||||
[ -e dir ] && rm dir
|
||||
[ -e dir.gz ] && rm dir.gz
|
||||
[ -e dir.new ] && rm dir.new
|
||||
for file in \$(ls *.gz | grep -v ".*\-[0-9]\+\.gz")
|
||||
do
|
||||
install-info \$file ./dir
|
||||
done
|
||||
EOF
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (programming language)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Racket is a programming language.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://racket-lang.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l n -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,75 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=git$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
mkdir -p $TMP $PKG
|
||||
|
||||
# get sources
|
||||
[ ! -e $REPOSITORIES ] && mkdir -p $REPOSITORIES
|
||||
( cd $REPOSITORIES
|
||||
if [ -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
git pull
|
||||
)
|
||||
else
|
||||
git clone http://github.com/rakudo/rakudo.git $REPOSITORIES/$PRGNAM
|
||||
fi
|
||||
)
|
||||
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION && cp -R $REPOSITORIES/$PRGNAM $PRGNAM-$VERSION
|
||||
( cd $PRGNAM-$VERSION
|
||||
perl Configure.pl \
|
||||
--prefix=$PREFIX \
|
||||
--libdir=$PREFIX/lib$(echo $ARCH | grep -o 64) \
|
||||
--mandir=$PREFIX/man \
|
||||
--infodir=$PREFIX/info
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
)
|
||||
)
|
||||
|
||||
( cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Implementation of Perl6)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://perlcabal.org/syn/
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://raduko.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||
)
|
|
@ -1,106 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
PRGNAM=$(basename $CWD)
|
||||
TAG=gwh
|
||||
TMP=${TMP:-/tmp/gwh}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
VERSION=${VERSION:-$(date +%Y.%m.%d_%H.%M)}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-gwh}
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
if [ ! -e $REPOSITORY ]; then
|
||||
git clone http://github.com/antirez/redis.git $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
|
||||
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
#set the real version
|
||||
#VERSION=$(git rev-parse HEAD)
|
||||
|
||||
# launching tests hangs, so we don't run them -.-
|
||||
make PREFIX=$PREFIX
|
||||
|
||||
mkdir -p $PKG$PREFIX/bin
|
||||
make install PREFIX=$PKG$PREFIX
|
||||
|
||||
mkdir -p $PKG/etc/rc.d/
|
||||
#install -D -m 644 redis.conf $PKG/etc/redis.conf.new
|
||||
install -D -m 644 $CWD/redis.conf $PKG/etc/redis.conf.new
|
||||
install -D -m 755 $CWD/rc.redis $PKG/etc/rc.d/rc.redis.new
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM
|
||||
cp -a 00-RELEASENOTES BUGS CONTRIBUTING COPYING Changelog INSTALL \
|
||||
README TODO doc/ design-documents/ utils/ \
|
||||
$PKG/usr/doc/$PRGNAM
|
||||
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
config() {
|
||||
NEW="\$1"
|
||||
OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r \$OLD ]; then
|
||||
mv \$NEW \$OLD
|
||||
elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then # toss\
|
||||
the redundant copy
|
||||
rm \$NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
config etc/redis.conf.new
|
||||
config etc/rc.d/rc.redis.new
|
||||
EOF
|
||||
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (key-value store database)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Redis is an extremely fast and powerful key-value store database and server
|
||||
$PRGNAM: implemented in ANSI C. Redis offers many different ways to do one
|
||||
$PRGNAM: straightforward thing: store a value ("antirez") to a key ("redis").
|
||||
$PRGNAM: While the format of keys must always be simple strings, the power is with
|
||||
$PRGNAM: the values.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://redis.io
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,35 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Important notice!
|
||||
# This assume the following non-standard options:
|
||||
# daemonize yes
|
||||
# logfile /var/log/redis.log
|
||||
|
||||
DEAMON=redis-server
|
||||
|
||||
CONF=/etc/redis.conf
|
||||
PIDFILE=/var/run/redis.pid
|
||||
|
||||
case $1 in
|
||||
"start")
|
||||
if [ -e $PIDFILE ]; then
|
||||
echo "$DEAMON already running ($(cat $PIDFILE))"
|
||||
else
|
||||
$DEAMON $CONF
|
||||
fi
|
||||
;;
|
||||
"stop")
|
||||
if [ -e $PIDFILE ]; then
|
||||
kill $(cat $PIDFILE)
|
||||
rm $PIDFILE
|
||||
else
|
||||
echo "$DEAMON not running"
|
||||
fi
|
||||
;;
|
||||
"restart")
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
|
@ -1,370 +0,0 @@
|
|||
# Redis configuration file example
|
||||
|
||||
# Note on units: when memory size is needed, it is possible to specifiy
|
||||
# it in the usual form of 1k 5GB 4M and so forth:
|
||||
#
|
||||
# 1k => 1000 bytes
|
||||
# 1kb => 1024 bytes
|
||||
# 1m => 1000000 bytes
|
||||
# 1mb => 1024*1024 bytes
|
||||
# 1g => 1000000000 bytes
|
||||
# 1gb => 1024*1024*1024 bytes
|
||||
#
|
||||
# units are case insensitive so 1GB 1Gb 1gB are all the same.
|
||||
|
||||
# By default Redis does not run as a daemon. Use 'yes' if you need it.
|
||||
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
|
||||
daemonize yes
|
||||
|
||||
# When running daemonized, Redis writes a pid file in /var/run/redis.pid by
|
||||
# default. You can specify a custom pid file location here.
|
||||
pidfile /var/run/redis.pid
|
||||
|
||||
# Accept connections on the specified port, default is 6379.
|
||||
port 6379
|
||||
|
||||
# If you want you can bind a single interface, if the bind option is not
|
||||
# specified all the interfaces will listen for incoming connections.
|
||||
#
|
||||
# bind 127.0.0.1
|
||||
|
||||
# Specify the path for the unix socket that will be used to listen for
|
||||
# incoming connections. There is no default, so Redis will not listen
|
||||
# on a unix socket when not specified.
|
||||
#
|
||||
# unixsocket /tmp/redis.sock
|
||||
|
||||
# Close the connection after a client is idle for N seconds (0 to disable)
|
||||
timeout 300
|
||||
|
||||
# Set server verbosity to 'debug'
|
||||
# it can be one of:
|
||||
# debug (a lot of information, useful for development/testing)
|
||||
# verbose (many rarely useful info, but not a mess like the debug level)
|
||||
# notice (moderately verbose, what you want in production probably)
|
||||
# warning (only very important / critical messages are logged)
|
||||
loglevel notice
|
||||
|
||||
# Specify the log file name. Also 'stdout' can be used to force
|
||||
# Redis to log on the standard output. Note that if you use standard
|
||||
# output for logging but daemonize, logs will be sent to /dev/null
|
||||
logfile /var/log/redis.log
|
||||
|
||||
# To enable logging to the system logger, just set 'syslog-enabled' to yes,
|
||||
# and optionally update the other syslog parameters to suit your needs.
|
||||
# syslog-enabled no
|
||||
|
||||
# Specify the syslog identity.
|
||||
# syslog-ident redis
|
||||
|
||||
# Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7.
|
||||
# syslog-facility local0
|
||||
|
||||
# Set the number of databases. The default database is DB 0, you can select
|
||||
# a different one on a per-connection basis using SELECT <dbid> where
|
||||
# dbid is a number between 0 and 'databases'-1
|
||||
databases 16
|
||||
|
||||
################################ SNAPSHOTTING #################################
|
||||
#
|
||||
# Save the DB on disk:
|
||||
#
|
||||
# save <seconds> <changes>
|
||||
#
|
||||
# Will save the DB if both the given number of seconds and the given
|
||||
# number of write operations against the DB occurred.
|
||||
#
|
||||
# In the example below the behaviour will be to save:
|
||||
# after 900 sec (15 min) if at least 1 key changed
|
||||
# after 300 sec (5 min) if at least 10 keys changed
|
||||
# after 60 sec if at least 10000 keys changed
|
||||
#
|
||||
# Note: you can disable saving at all commenting all the "save" lines.
|
||||
|
||||
save 900 1
|
||||
save 300 10
|
||||
save 60 10000
|
||||
|
||||
# Compress string objects using LZF when dump .rdb databases?
|
||||
# For default that's set to 'yes' as it's almost always a win.
|
||||
# If you want to save some CPU in the saving child set it to 'no' but
|
||||
# the dataset will likely be bigger if you have compressible values or keys.
|
||||
rdbcompression yes
|
||||
|
||||
# The filename where to dump the DB
|
||||
dbfilename dump.rdb
|
||||
|
||||
# The working directory.
|
||||
#
|
||||
# The DB will be written inside this directory, with the filename specified
|
||||
# above using the 'dbfilename' configuration directive.
|
||||
#
|
||||
# Also the Append Only File will be created inside this directory.
|
||||
#
|
||||
# Note that you must specify a directory here, not a file name.
|
||||
dir ./
|
||||
|
||||
################################# REPLICATION #################################
|
||||
|
||||
# Master-Slave replication. Use slaveof to make a Redis instance a copy of
|
||||
# another Redis server. Note that the configuration is local to the slave
|
||||
# so for example it is possible to configure the slave to save the DB with a
|
||||
# different interval, or to listen to another port, and so on.
|
||||
#
|
||||
# slaveof <masterip> <masterport>
|
||||
|
||||
# If the master is password protected (using the "requirepass" configuration
|
||||
# directive below) it is possible to tell the slave to authenticate before
|
||||
# starting the replication synchronization process, otherwise the master will
|
||||
# refuse the slave request.
|
||||
#
|
||||
# masterauth <master-password>
|
||||
|
||||
# When a slave lost the connection with the master, or when the replication
|
||||
# is still in progress, the slave can act in two different ways:
|
||||
#
|
||||
# 1) if slave-serve-stale-data is set to 'yes' (the default) the slave will
|
||||
# still reply to client requests, possibly with out of data data, or the
|
||||
# data set may just be empty if this is the first synchronization.
|
||||
#
|
||||
# 2) if slave-serve-stale data is set to 'no' the slave will reply with
|
||||
# an error "SYNC with master in progress" to all the kind of commands
|
||||
# but to INFO and SLAVEOF.
|
||||
#
|
||||
slave-serve-stale-data yes
|
||||
|
||||
################################## SECURITY ###################################
|
||||
|
||||
# Require clients to issue AUTH <PASSWORD> before processing any other
|
||||
# commands. This might be useful in environments in which you do not trust
|
||||
# others with access to the host running redis-server.
|
||||
#
|
||||
# This should stay commented out for backward compatibility and because most
|
||||
# people do not need auth (e.g. they run their own servers).
|
||||
#
|
||||
# Warning: since Redis is pretty fast an outside user can try up to
|
||||
# 150k passwords per second against a good box. This means that you should
|
||||
# use a very strong password otherwise it will be very easy to break.
|
||||
#
|
||||
# requirepass foobared
|
||||
|
||||
# Command renaming.
|
||||
#
|
||||
# It is possilbe to change the name of dangerous commands in a shared
|
||||
# environment. For instance the CONFIG command may be renamed into something
|
||||
# of hard to guess so that it will be still available for internal-use
|
||||
# tools but not available for general clients.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52
|
||||
#
|
||||
# It is also possilbe to completely kill a command renaming it into
|
||||
# an empty string:
|
||||
#
|
||||
# rename-command CONFIG ""
|
||||
|
||||
################################### LIMITS ####################################
|
||||
|
||||
# Set the max number of connected clients at the same time. By default there
|
||||
# is no limit, and it's up to the number of file descriptors the Redis process
|
||||
# is able to open. The special value '0' means no limits.
|
||||
# Once the limit is reached Redis will close all the new connections sending
|
||||
# an error 'max number of clients reached'.
|
||||
#
|
||||
# maxclients 128
|
||||
|
||||
# Don't use more memory than the specified amount of bytes.
|
||||
# When the memory limit is reached Redis will try to remove keys with an
|
||||
# EXPIRE set. It will try to start freeing keys that are going to expire
|
||||
# in little time and preserve keys with a longer time to live.
|
||||
# Redis will also try to remove objects from free lists if possible.
|
||||
#
|
||||
# If all this fails, Redis will start to reply with errors to commands
|
||||
# that will use more memory, like SET, LPUSH, and so on, and will continue
|
||||
# to reply to most read-only commands like GET.
|
||||
#
|
||||
# WARNING: maxmemory can be a good idea mainly if you want to use Redis as a
|
||||
# 'state' server or cache, not as a real DB. When Redis is used as a real
|
||||
# database the memory usage will grow over the weeks, it will be obvious if
|
||||
# it is going to use too much memory in the long run, and you'll have the time
|
||||
# to upgrade. With maxmemory after the limit is reached you'll start to get
|
||||
# errors for write operations, and this may even lead to DB inconsistency.
|
||||
#
|
||||
# maxmemory <bytes>
|
||||
|
||||
# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
|
||||
# is reached? You can select among five behavior:
|
||||
#
|
||||
# volatile-lru -> remove the key with an expire set using an LRU algorithm
|
||||
# allkeys-lru -> remove any key accordingly to the LRU algorithm
|
||||
# volatile-random -> remove a random key with an expire set
|
||||
# allkeys->random -> remove a random key, any key
|
||||
# volatile-ttl -> remove the key with the nearest expire time (minor TTL)
|
||||
# noeviction -> don't expire at all, just return an error on write operations
|
||||
#
|
||||
# Note: with all the kind of policies, Redis will return an error on write
|
||||
# operations, when there are not suitable keys for eviction.
|
||||
#
|
||||
# At the date of writing this commands are: set setnx setex append
|
||||
# incr decr rpush lpush rpushx lpushx linsert lset rpoplpush sadd
|
||||
# sinter sinterstore sunion sunionstore sdiff sdiffstore zadd zincrby
|
||||
# zunionstore zinterstore hset hsetnx hmset hincrby incrby decrby
|
||||
# getset mset msetnx exec sort
|
||||
#
|
||||
# The default is:
|
||||
#
|
||||
# maxmemory-policy volatile-lru
|
||||
|
||||
# LRU and minimal TTL algorithms are not precise algorithms but approximated
|
||||
# algorithms (in order to save memory), so you can select as well the sample
|
||||
# size to check. For instance for default Redis will check three keys and
|
||||
# pick the one that was used less recently, you can change the sample size
|
||||
# using the following configuration directive.
|
||||
#
|
||||
# maxmemory-samples 3
|
||||
|
||||
############################## APPEND ONLY MODE ###############################
|
||||
|
||||
# By default Redis asynchronously dumps the dataset on disk. If you can live
|
||||
# with the idea that the latest records will be lost if something like a crash
|
||||
# happens this is the preferred way to run Redis. If instead you care a lot
|
||||
# about your data and don't want to that a single record can get lost you should
|
||||
# enable the append only mode: when this mode is enabled Redis will append
|
||||
# every write operation received in the file appendonly.aof. This file will
|
||||
# be read on startup in order to rebuild the full dataset in memory.
|
||||
#
|
||||
# Note that you can have both the async dumps and the append only file if you
|
||||
# like (you have to comment the "save" statements above to disable the dumps).
|
||||
# Still if append only mode is enabled Redis will load the data from the
|
||||
# log file at startup ignoring the dump.rdb file.
|
||||
#
|
||||
# IMPORTANT: Check the BGREWRITEAOF to check how to rewrite the append
|
||||
# log file in background when it gets too big.
|
||||
|
||||
appendonly no
|
||||
|
||||
# The name of the append only file (default: "appendonly.aof")
|
||||
# appendfilename appendonly.aof
|
||||
|
||||
# The fsync() call tells the Operating System to actually write data on disk
|
||||
# instead to wait for more data in the output buffer. Some OS will really flush
|
||||
# data on disk, some other OS will just try to do it ASAP.
|
||||
#
|
||||
# Redis supports three different modes:
|
||||
#
|
||||
# no: don't fsync, just let the OS flush the data when it wants. Faster.
|
||||
# always: fsync after every write to the append only log . Slow, Safest.
|
||||
# everysec: fsync only if one second passed since the last fsync. Compromise.
|
||||
#
|
||||
# The default is "everysec" that's usually the right compromise between
|
||||
# speed and data safety. It's up to you to understand if you can relax this to
|
||||
# "no" that will will let the operating system flush the output buffer when
|
||||
# it wants, for better performances (but if you can live with the idea of
|
||||
# some data loss consider the default persistence mode that's snapshotting),
|
||||
# or on the contrary, use "always" that's very slow but a bit safer than
|
||||
# everysec.
|
||||
#
|
||||
# If unsure, use "everysec".
|
||||
|
||||
# appendfsync always
|
||||
appendfsync everysec
|
||||
# appendfsync no
|
||||
|
||||
# When the AOF fsync policy is set to always or everysec, and a background
|
||||
# saving process (a background save or AOF log background rewriting) is
|
||||
# performing a lot of I/O against the disk, in some Linux configurations
|
||||
# Redis may block too long on the fsync() call. Note that there is no fix for
|
||||
# this currently, as even performing fsync in a different thread will block
|
||||
# our synchronous write(2) call.
|
||||
#
|
||||
# In order to mitigate this problem it's possible to use the following option
|
||||
# that will prevent fsync() from being called in the main process while a
|
||||
# BGSAVE or BGREWRITEAOF is in progress.
|
||||
#
|
||||
# This means that while another child is saving the durability of Redis is
|
||||
# the same as "appendfsync none", that in pratical terms means that it is
|
||||
# possible to lost up to 30 seconds of log in the worst scenario (with the
|
||||
# default Linux settings).
|
||||
#
|
||||
# If you have latency problems turn this to "yes". Otherwise leave it as
|
||||
# "no" that is the safest pick from the point of view of durability.
|
||||
no-appendfsync-on-rewrite no
|
||||
|
||||
#################################### DISK STORE ###############################
|
||||
|
||||
# When disk store is active Redis works as an on-disk database, where memory
|
||||
# is only used as a object cache.
|
||||
#
|
||||
# This mode is good for datasets that are bigger than memory, and in general
|
||||
# when you want to trade speed for:
|
||||
#
|
||||
# - less memory used
|
||||
# - immediate server restart
|
||||
# - per key durability, without need for backgrond savig
|
||||
#
|
||||
# On the other hand, with disk store enabled MULTI/EXEC are no longer
|
||||
# transactional from the point of view of the persistence on disk, that is,
|
||||
# Redis transactions will still guarantee that commands are either processed
|
||||
# all or nothing, but there is no guarantee that all the keys are flushed
|
||||
# on disk in an atomic way.
|
||||
#
|
||||
# Of course with disk store enabled Redis is not as fast as it is when
|
||||
# working with just the memory back end.
|
||||
|
||||
diskstore-enabled no
|
||||
diskstore-path redis.ds
|
||||
cache-max-memory 0
|
||||
cache-flush-delay 0
|
||||
|
||||
############################### ADVANCED CONFIG ###############################
|
||||
|
||||
# Hashes are encoded in a special way (much more memory efficient) when they
|
||||
# have at max a given numer of elements, and the biggest element does not
|
||||
# exceed a given threshold. You can configure this limits with the following
|
||||
# configuration directives.
|
||||
hash-max-zipmap-entries 512
|
||||
hash-max-zipmap-value 64
|
||||
|
||||
# Similarly to hashes, small lists are also encoded in a special way in order
|
||||
# to save a lot of space. The special representation is only used when
|
||||
# you are under the following limits:
|
||||
list-max-ziplist-entries 512
|
||||
list-max-ziplist-value 64
|
||||
|
||||
# Sets have a special encoding in just one case: when a set is composed
|
||||
# of just strings that happens to be integers in radix 10 in the range
|
||||
# of 64 bit signed integers.
|
||||
# The following configuration setting sets the limit in the size of the
|
||||
# set in order to use this special memory saving encoding.
|
||||
set-max-intset-entries 512
|
||||
|
||||
# Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in
|
||||
# order to help rehashing the main Redis hash table (the one mapping top-level
|
||||
# keys to values). The hash table implementation redis uses (see dict.c)
|
||||
# performs a lazy rehashing: the more operation you run into an hash table
|
||||
# that is rhashing, the more rehashing "steps" are performed, so if the
|
||||
# server is idle the rehashing is never complete and some more memory is used
|
||||
# by the hash table.
|
||||
#
|
||||
# The default is to use this millisecond 10 times every second in order to
|
||||
# active rehashing the main dictionaries, freeing memory when possible.
|
||||
#
|
||||
# If unsure:
|
||||
# use "activerehashing no" if you have hard latency requirements and it is
|
||||
# not a good thing in your environment that Redis can reply form time to time
|
||||
# to queries with 2 milliseconds delay.
|
||||
#
|
||||
# use "activerehashing yes" if you don't have such hard requirements but
|
||||
# want to free memory asap when possible.
|
||||
activerehashing yes
|
||||
|
||||
################################## INCLUDES ###################################
|
||||
|
||||
# Include one or more other config files here. This is useful if you
|
||||
# have a standard template that goes to all redis server but also need
|
||||
# to customize a few per-server settings. Include files can include
|
||||
# other files, so use this wisely.
|
||||
#
|
||||
# include /path/to/local.conf
|
||||
# include /path/to/other.conf
|
|
@ -1,83 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=0.9.2
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
DOCS="COPYING MANIFEST.in PKG-INFO README.txt"
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
( cd $TMP
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && \
|
||||
wget -c http://downloads.sourceforge.net/project/$PRGNAM/$PRGNAM/$VERSION/$PRGNAM-$VERSION.tar.gz?use_mirror=jaist \
|
||||
-O $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
)
|
||||
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
# installation
|
||||
python setup.py install --root=$PKG
|
||||
)
|
||||
|
||||
# correction
|
||||
chown -R root:root $PKG/*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
cp -R $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
)
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
[ -d $PKG/usr/info ] && find $PKG/usr/info -type f -name "*.info*" -exec gzip -9f {} \;
|
||||
[ -d $PKG/usr/info ] && rm $PKG/usr/info/dir
|
||||
|
||||
# Strip binaries
|
||||
find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
cd /usr/info
|
||||
[ -e dir ] && rm dir
|
||||
[ -e dir.gz ] && rm dir.gz
|
||||
[ -e dir.new ] && rm dir.new
|
||||
for file in \$(ls *.gz | grep -v ".*\-[0-9]\+\.gz")
|
||||
do
|
||||
install-info \$file ./dir
|
||||
done
|
||||
EOF
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (a python refactoring library...)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://rope.sourceforge.net/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
( cd $PKG
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d -)-$ARCH-$BUILD$TAG.txz
|
||||
)
|
|
@ -1,98 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(ls rpl-*.tar.?z* | cut -d - -f 2 | rev | cut -f 3- -d . | rev)
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o 64)
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
|
||||
# Fetching sources
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && wget -c http://www.rpl2.net/download/$PRGNAM-$VERSION.tar.bz2 -O $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
|
||||
# Preparation
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
# Configuration
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--infodir=$PREFIX/info \
|
||||
--libdir=$PREFIX/lib$LIBSUFFIX \
|
||||
--enable-experimental #I heart danger
|
||||
|
||||
# Building
|
||||
make
|
||||
|
||||
# Installation
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
# Cleaning
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
find $PKG$PREFIX/info -name "dir" -exec rm {} \;
|
||||
find $PKG$PREFIX/info -type f -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
|
||||
# Packaging
|
||||
mkdir install
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
cd /usr/info
|
||||
[ -e dir ] && rm dir
|
||||
[ -e dir.gz ] && rm dir.gz
|
||||
[ -e dir.new ] && rm dir.new
|
||||
for file in \$(ls *.gz | grep -v ".*\-[0-9]\+\.gz")
|
||||
do
|
||||
install-info \$file ./dir
|
||||
done
|
||||
EOF
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (programming language)
|
||||
$PRGNAM:
|
||||
$PRGNAM: a programming language designed for scientific computations.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.rpl2.net/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||
|
|
@ -1,65 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-1.17.0}
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
mkdir -p $TMP $PKG
|
||||
|
||||
# get
|
||||
[ "$VERSION" == "nightly" ] && rm $CWD/rust-${VERSION}-x86_64-unknown-linux-gnu.tar.gz
|
||||
[ ! -e $CWD/rust-${VERSION}-x86_64-unknown-linux-gnu.tar.gz ] && wget -c https://static.rust-lang.org/dist/rust-${VERSION}-x86_64-unknown-linux-gnu.tar.gz -O $CWD/rust-${VERSION}-x86_64-unknown-linux-gnu.tar.gz
|
||||
|
||||
cd $TMP
|
||||
tar xvf $CWD/rust-${VERSION}-x86_64-unknown-linux-gnu.tar.gz
|
||||
|
||||
cd rust-${VERSION}-x86_64-unknown-linux-gnu
|
||||
./install.sh --prefix=$PKG/usr
|
||||
|
||||
echo "${ARCH}" | grep -q -o 64 && mv $PKG/usr/lib $PKG/usr/lib64
|
||||
mv $PKG/usr/share/man $PKG/usr/
|
||||
mv $PKG/usr/share/doc $PKG/usr/
|
||||
find $PKG/usr/man/ -type f -name \*.\? -exec gzip -9 {} \;
|
||||
|
||||
cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (a safe, concurrent, practical language)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Rust is a curly-brace, block-structured expression language.
|
||||
$PRGNAM: It visually resembles the C language family, but differs significantly in
|
||||
$PRGNAM: syntactic and semantic details. Its design is oriented toward concerns of
|
||||
$PRGNAM: “programming in the large”, that is, of creating and maintaining boundaries
|
||||
$PRGNAM: – both abstract and operational – that preserve large-system integrity,
|
||||
$PRGNAM: availability and concurrency.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.rust-lang.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
[ "$VERSION" == "nightly" ] && VERSION=${VERSION}_$(date +%F | tr - .)
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,63 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=nightly
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
mkdir -p $TMP $PKG
|
||||
|
||||
# get sources
|
||||
[ "$VERSION" == "nightly" ] && rm $CWD/rustc-${VERSION}-src.tar.gz
|
||||
[ ! -e $CWD/rustc-${VERSION}-src.tar.gz ] && wget -c https://static.rust-lang.org/dist/rustc-${VERSION}-src.tar.gz
|
||||
|
||||
cd $TMP
|
||||
tar xvf $CWD/rustc-${VERSION}-src.tar.gz
|
||||
|
||||
cd $PRGNAM-$VERSION
|
||||
./configure \
|
||||
--prefix=$PREFIX
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
mv $PKG/usr/share/man $PKG/usr/
|
||||
find $PKG/usr/man/ -type f -name \*.\? -exec gzip -9 {} \;
|
||||
|
||||
cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (a safe, concurrent, practical language)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Rust is a curly-brace, block-structured expression language.
|
||||
$PRGNAM: It visually resembles the C language family, but differs significantly in
|
||||
$PRGNAM: syntactic and semantic details. Its design is oriented toward concerns of
|
||||
$PRGNAM: “programming in the large”, that is, of creating and maintaining boundaries
|
||||
$PRGNAM: – both abstract and operational – that preserve large-system integrity,
|
||||
$PRGNAM: availability and concurrency.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.rust-lang.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,102 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=3.2.4
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
DOCS="ABOUT-NLS AUTHORS ChangeLog COPYING* INSTALL NEWS README THANKS TODO"
|
||||
|
||||
SLCKFLAGS="-O2"
|
||||
case $ARCH in
|
||||
"x86_64")
|
||||
SLCKFLAGS="$SLCKFLAGS -fPIC"
|
||||
;;
|
||||
*)
|
||||
esac
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.tar.xz ] && \
|
||||
wget -c ftp://ftp.gnu.org/gnu/smalltalk/$PRGNAM-$VERSION.tar.xz \
|
||||
-O $CWD/$PRGNAM-$VERSION.tar.xz
|
||||
tar xf $CWD/$PRGNAM-$VERSION.tar.xz
|
||||
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
# configuration
|
||||
CCPFLAGS=$SLCKFLAGS \
|
||||
CFLAGS=$SLCKFLAGS \
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--infodir=$PREFIX/info \
|
||||
--docdir=$PREFIX/doc/$PRGNAM-$VERSION \
|
||||
--includedir=$PREFIX/include \
|
||||
--libdir=$PREFIX/lib$(echo $ARCH | grep -o 64) \
|
||||
--enable-disassembler \
|
||||
--enable-preemption
|
||||
|
||||
# compilation
|
||||
make PREFIX=$PREFIX
|
||||
# installation
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
# correction
|
||||
chown -R root:root $PKG/*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -R $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
[ -d $PKG/usr/info ] && find $PKG/usr/info -type f -name "*.info*" -exec gzip -9f {} \;
|
||||
[ -d $PKG/usr/info ] && rm $PKG/usr/info/dir
|
||||
|
||||
# Strip binaries
|
||||
find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
cd /usr/info
|
||||
[ -e dir ] && rm dir
|
||||
[ -e dir.gz ] && rm dir.gz
|
||||
[ -e dir.new ] && rm dir.new
|
||||
for file in \$(ls *.gz | grep -v ".*\-[0-9]\+\.gz")
|
||||
do
|
||||
install-info \$file ./dir
|
||||
done
|
||||
EOF
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (The Smalltalk for those who can type)
|
||||
$PRGNAM:
|
||||
$PRGNAM: GNU Smalltalk is a free implementation of the Smalltalk-80 language.
|
||||
$PRGNAM: It runs on most POSIX compatible operating systems (including GNU/Linux,
|
||||
$PRGNAM: of course), as well as under Windows. Smalltalk is a dynamic
|
||||
$PRGNAM: object-oriented language, well-versed to scripting tasks.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://smalltalk.gnu.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d -)-$ARCH-$BUILD$TAG.txz
|
|
@ -1,62 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
PRGNAM=vagrant
|
||||
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
VERSION=${VERSION:-1.4.3}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-gwh}
|
||||
|
||||
# Allow $ARCH to be preset before running the script. This is useful in the
|
||||
# case where someone is running a 32-bit chroot environment under an x86_64
|
||||
# kernel:
|
||||
case "$ARCH" in
|
||||
i?86) LIBDIRSUFFIX="" ; ARCH=i386 ;;
|
||||
x86_64) LIBDIRSUFFIX="64" ;;
|
||||
*) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;;
|
||||
esac
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $PKG
|
||||
|
||||
# Download it by hand...
|
||||
|
||||
ar p $CWD/vagrant_${VERSION}_$ARCH.deb data.tar.gz | gunzip | tar xv || exit 1
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
# Make sure top-level perms are correct:
|
||||
chmod 0755 .
|
||||
|
||||
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 (Development environments made easy.)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Create and configure lightweight, reproducible, and portable
|
||||
$PRGNAM: development environments.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: Homepage: http://www.vagrantup.com/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,67 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
OUTPUT=/tmp
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
VERSION=$(date +%Y.%m.%d_%H.%M)
|
||||
|
||||
ARCH=noarch
|
||||
BUILD=1
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG$PREFIX/{bin/,doc/}
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
mkdir -p $REPOSITORIES
|
||||
( cd $REPOSITORIES
|
||||
git clone http://git.gitorious.org/willgit/mainline.git $PRGNAM
|
||||
)
|
||||
else
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
# installation
|
||||
cp -R $REPOSITORIES/$PRGNAM/bin/* $PKG$PREFIX/bin/
|
||||
cp -R $REPOSITORIES/$PRGNAM/www/ $PKG$PREFIX/doc/$PRGNAM
|
||||
chmod +x $PKG$PREFIX/bin/*
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (William's Miscellaneous Git Tools)
|
||||
$PRGNAM:
|
||||
$PRGNAM: A bunch of random git-related tools I've found useful at some point,
|
||||
$PRGNAM: mostly for managing feature branches.
|
||||
$PRGNAM:
|
||||
$PRGNAM: Includes such greatest hits as: git-wtf, git-show-merges,
|
||||
$PRGNAM: git-publish-branch, and git-rank-contributors.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://gitorious.org/willgit
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
|
@ -1,49 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
[ -e $CWD/advanced-linux-programming.pdf ] && mv $CWD/advanced-linux-programming.pdf{,.orig}
|
||||
wget -c http://www.advancedlinuxprogramming.com/alp-folder/advanced-linux-programming.pdf -O $CWD/advanced-linux-programming.pdf
|
||||
[ -e $CWD/ALP-listings.tar.gz ] && mv $CWD/ALP-listings.tar.gz{,.orig}
|
||||
wget -c http://www.advancedlinuxprogramming.com/ALP-listings.tar.gz -O $CWD/ALP-listings.tar.gz
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||
cp -R $CWD/advanced-linux-programming.pdf $CWD/ALP-listings.tar.gz $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM («Advanced Linux Programming» book)
|
||||
$PRGNAM: If you are a developer for the GNU/Linux system, this book will help you to:
|
||||
$PRGNAM: > Develop GNU/Linux software that works the way users expect it to.
|
||||
$PRGNAM: > Write more sophisticated programs with features such as multiprocessing,
|
||||
$PRGNAM: multi-threading, interprocess communication, and interaction with hardware
|
||||
$PRGNAM: devices.
|
||||
$PRGNAM: > Improve your programs by making them run faster, more reliably, and more
|
||||
$PRGNAM: securely.
|
||||
$PRGNAM: > Understand the preculiarities of a GNU/Linux system, including its limitations,
|
||||
$PRGNAM: special capabilities, and conventions.
|
||||
$PRGNAM: http://www.advancedlinuxprogramming.com/
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -1,57 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
|
||||
mkdir -p $REPOSITORIES/$PRGNAM
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
httrack http://www.golang-book.com/ -*.dmg -*.exe +*.txt
|
||||
)
|
||||
else
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
httrack --update
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/
|
||||
cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
( cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Go Programming book)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.golang-book.com/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||
)
|
|
@ -1,57 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
|
||||
mkdir -p $REPOSITORIES/$PRGNAM
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
httrack http://androidcookbook.com/home.seam -*.dmg -*.exe +*.txt
|
||||
)
|
||||
else
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
httrack --update
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/
|
||||
cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
( cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Crowd-Sourced Android CookBook)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://androidcookbook.com/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||
)
|
|
@ -1,56 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
ARCH=noarch
|
||||
|
||||
TAG=gwh
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories/
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
|
||||
mkdir -p $REPOSITORIES/$PRGNAM
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
httrack http://www-cs-students.stanford.edu/~blynn/c/
|
||||
)
|
||||
else
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
httrack --update
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/
|
||||
cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM («C Craft» book)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www-cs-students.stanford.edu/~blynn/c/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue