Merge branch 'master' of github.com:cycojesus/slackbuilds
This commit is contained in:
commit
bcec83b6e7
15 changed files with 516 additions and 11 deletions
54
SALE/avast4workstation/avast4workstation.SlackBuild
Executable file
54
SALE/avast4workstation/avast4workstation.SlackBuild
Executable file
|
@ -0,0 +1,54 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=avast4workstation
|
||||
VERSION=1.3.0
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=i386
|
||||
|
||||
TMP=/tmp
|
||||
PKG=$TMP/$PACKAGER/pkg-$PRGNAM
|
||||
PREFIX=/usr
|
||||
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.tar.gz ] && wget -c http://files.avast.com/files/linux/$PRGNAM-$VERSION.tar.gz -O $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
|
||||
rm -fr $PKG
|
||||
mkdir -p $PKG
|
||||
( cd $PKG
|
||||
tar xf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
mv $PRGNAM-$VERSION ./$PREFIX/
|
||||
mv ./$PREFIX/share/man ./$PREFIX/man
|
||||
)
|
||||
|
||||
( cd $PKG
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 700 -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 {} \;
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
( cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Oh. God. Not. That! (an proprietary antivirus))
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.avast.com/fr-fr/linux-home-edition
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $TMP/$PRGNAM-$(echo $VERSION | tr - _)-$ARCH-$BUILD$PACKAGER.txz
|
||||
)
|
|
@ -4,7 +4,7 @@ CWD=$(pwd)
|
|||
|
||||
PRGNAM=$(basename $CWD)
|
||||
BRANCH=trunk
|
||||
VERSION=$BRANCH$(date +%F | tr -d -)
|
||||
VERSION=$BRANCH$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
|
|
75
d/luajit/luajit.SlackBuild
Executable file
75
d/luajit/luajit.SlackBuild
Executable file
|
@ -0,0 +1,75 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=git$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories
|
||||
|
||||
TMP=/tmp/$PACKAGER
|
||||
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://luajit.org/git/luajit-2.0.git $REPOSITORIES/$PRGNAM
|
||||
fi
|
||||
)
|
||||
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION && cp -R $REPOSITORIES/$PRGNAM $PRGNAM-$VERSION
|
||||
( cd $PRGNAM-$VERSION
|
||||
sed -i "s|/usr/local|$PREFIX|g" Makefile src/luaconf.h
|
||||
sed -i 's|$(INSTALL_SHARE)/man/man1|$(DPREFIX)/man/man1|g' Makefile
|
||||
echo "$ARCH" | grep -q 64 && sed -i "s|/lib|/lib64|g" Makefile src/luaconf.h
|
||||
echo "$ARCH" | grep -q 64 && sed -i "s|lib/|lib64/|g" Makefile src/luaconf.h
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
( cd $PKG$PREFIX/bin/
|
||||
ln -s luajit-* luajit
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
( cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (a Just-In-Time Compiler for Lua.)
|
||||
$PRGNAM:
|
||||
$PRGNAM: LuaJIT implements the full set of language features defined by Lua 5.1.
|
||||
$PRGNAM: The virtual machine (VM) is API- and ABI-compatible to the standard Lua
|
||||
$PRGNAM: interpreter and can be deployed as a drop-in replacement.
|
||||
$PRGNAM:
|
||||
$PRGNAM: LuaJIT offers more performance, at the expense of portability. It currently
|
||||
$PRGNAM: runs on all popular operating systems based on x86 or x64 CPUs
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://luajit.org/luajit.html
|
||||
$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$PACKAGER.txz
|
||||
)
|
|
@ -4,7 +4,7 @@ CWD=$(pwd)
|
|||
|
||||
PRGNAM=$(basename $CWD)
|
||||
BRANCH=trunk
|
||||
VERSION=$BRANCH$(date +%F | tr -d -)
|
||||
VERSION=$BRANCH$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=git$(date +%F | tr -d -)
|
||||
VERSION=git$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
|
|
71
fonts/ttf-CharisSIL/ttf-CharisSIL.SlackBuild
Executable file
71
fonts/ttf-CharisSIL/ttf-CharisSIL.SlackBuild
Executable file
|
@ -0,0 +1,71 @@
|
|||
#!/bin/sh
|
||||
|
||||
PRGNAM=$(basename $(pwd))
|
||||
VERSION=4.106
|
||||
ARCH=noarch
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-cyco}
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# Create working directories:
|
||||
mkdir -p $OUTPUT # place for the package to be saved
|
||||
mkdir -p $PKG # place for the package to be built
|
||||
rm -rf $PKG/* # always erase old package's contents
|
||||
rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log
|
||||
# remove old log files
|
||||
|
||||
FONTDIR="/usr/share/fonts/TTF"
|
||||
|
||||
# Move the fonts into place:
|
||||
mkdir -p $PKG$FONTDIR $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
( cd $PKG$FONTDIR/
|
||||
[ ! -e $CWD/Gentium_${VERSION}_W.zip ] && wget -c "http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=CharisSIL4.106b.zip&filename=CharisSIL4.106.zip" -O $CWD/CharisSIL$VERSION.zip
|
||||
unzip $CWD/CharisSIL$VERSION.zip
|
||||
|
||||
find . -type f -name "*.ttf" -exec mv {} . \;
|
||||
find . -type f -not -name "*.ttf" -exec mv {} $PKG/usr/doc/$PRGNAM-$VERSION \;
|
||||
find . -type d -exec rm -r {} \;
|
||||
)
|
||||
|
||||
# Post-install script:
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOT > $PKG/install/doinst.sh
|
||||
# Update X font indexes and the font cache:
|
||||
if [ -x .$XPREF/bin/mkfontdir ]; then
|
||||
chroot . $XPREF/bin/mkfontscale $FONTDIR
|
||||
chroot . $XPREF/bin/mkfontdir $FONTDIR
|
||||
fi
|
||||
if [ -x .$XPREF/bin/fc-cache ]; then
|
||||
chroot . $XPREF/bin/fc-cache -f $FONTDIR
|
||||
fi
|
||||
EOT
|
||||
|
||||
# Add a package description:
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (font)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=CharisSILfont
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# Build the package:
|
||||
cd $PKG
|
||||
makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
|
||||
cd $OUTPUT
|
||||
md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz.md5
|
||||
cd -
|
||||
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
|
||||
|
71
fonts/ttf-DoulosSIL/ttf-DoulosSIL.SlackBuild
Executable file
71
fonts/ttf-DoulosSIL/ttf-DoulosSIL.SlackBuild
Executable file
|
@ -0,0 +1,71 @@
|
|||
#!/bin/sh
|
||||
|
||||
PRGNAM=$(basename $(pwd))
|
||||
VERSION=4.106
|
||||
ARCH=noarch
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-cyco}
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# Create working directories:
|
||||
mkdir -p $OUTPUT # place for the package to be saved
|
||||
mkdir -p $PKG # place for the package to be built
|
||||
rm -rf $PKG/* # always erase old package's contents
|
||||
rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log
|
||||
# remove old log files
|
||||
|
||||
FONTDIR="/usr/share/fonts/TTF"
|
||||
|
||||
# Move the fonts into place:
|
||||
mkdir -p $PKG$FONTDIR $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
( cd $PKG$FONTDIR/
|
||||
[ ! -e $CWD/Gentium_${VERSION}_W.zip ] && wget -c "http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=DoulosSIL4.106b.zip&filename=DoulosSIL4.106.zip" -O $CWD/DoulosSIL$VERSION.zip
|
||||
unzip $CWD/DoulosSIL$VERSION.zip
|
||||
|
||||
find . -type f -name "*.ttf" -exec mv {} . \;
|
||||
find . -type f -not -name "*.ttf" -exec mv {} $PKG/usr/doc/$PRGNAM-$VERSION \;
|
||||
find . -type d -exec rm -r {} \;
|
||||
)
|
||||
|
||||
# Post-install script:
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOT > $PKG/install/doinst.sh
|
||||
# Update X font indexes and the font cache:
|
||||
if [ -x .$XPREF/bin/mkfontdir ]; then
|
||||
chroot . $XPREF/bin/mkfontscale $FONTDIR
|
||||
chroot . $XPREF/bin/mkfontdir $FONTDIR
|
||||
fi
|
||||
if [ -x .$XPREF/bin/fc-cache ]; then
|
||||
chroot . $XPREF/bin/fc-cache -f $FONTDIR
|
||||
fi
|
||||
EOT
|
||||
|
||||
# Add a package description:
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (font)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=DoulosSILfont
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# Build the package:
|
||||
cd $PKG
|
||||
makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
|
||||
cd $OUTPUT
|
||||
md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz.md5
|
||||
cd -
|
||||
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +%F | tr -d -)
|
||||
VERSION=$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
|
|
57
web/iui/iui.SlackBuild
Executable file
57
web/iui/iui.SlackBuild
Executable file
|
@ -0,0 +1,57 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=git$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories
|
||||
|
||||
TMP=/tmp/$PACKAGER
|
||||
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
|
||||
hg pull -u
|
||||
)
|
||||
else
|
||||
hg clone https://iui.googlecode.com/hg/ $REPOSITORIES/$PRGNAM
|
||||
fi
|
||||
)
|
||||
|
||||
mkdir -p $PKG/srv/www/htdocs
|
||||
cp -R $REPOSITORIES/$PRGNAM $PKG/srv/www/htdocs/
|
||||
find $PKG/srv/www/htdocs -name \.hg\* -exec rm -fr {} \;
|
||||
|
||||
( cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (iPhone User Interface Framework)
|
||||
$PRGNAM: iUI is a framework consisting of a JavaScript library, CSS, and images for
|
||||
$PRGNAM: developing iPhone webapps.
|
||||
$PRGNAM: Makes WebApps Look and Feel Like iPhone Native Apps
|
||||
$PRGNAM: iUI has the following features:
|
||||
$PRGNAM: * Create Navigational Menus and iPhone interfaces from standard HTML
|
||||
$PRGNAM: * Use or knowledge of JavaScript is not required to create basic iPhone pages
|
||||
$PRGNAM: * Ability to handle phone orientation changes
|
||||
$PRGNAM: * Provide a more "iPhone-like" experience to Web apps (on or off the iPhone)
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://code.google.com/p/iui/
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$PACKAGER.txz
|
||||
)
|
|
@ -3,7 +3,7 @@
|
|||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=git$(date +%F | tr -d -)
|
||||
VERSION=git$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=git$(date +%F | tr -d -)
|
||||
VERSION=git$(date +%Y.%m.%d_%H.%M)
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PKGNAM=libdrm
|
||||
VERSION=${VERSION:-git$(date +%F | tr -d -)}
|
||||
VERSION=${VERSION:-git$(date +%Y.%m.%d_%H.%M)}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
NUMJOBS=${NUMJOBS:-" -j3 "}
|
||||
BUILD=${BUILD:-1cyco}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
#NOTE: Needs File::Next (cpan -i File::Next)
|
||||
|
||||
# variables
|
||||
TMP=/tmp
|
||||
CWD=$(pwd)
|
||||
|
@ -20,9 +18,8 @@ BUILD=1cyco
|
|||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS="-fPIC -O2"
|
||||
SLCKFLAGS="-O2 $(echo "$ARCH" | grep -q "64" && echo -fPIC)"
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$APP_NAME-$VERSION
|
||||
|
||||
|
|
90
xap/st/st.SlackBuild
Executable file
90
xap/st/st.SlackBuild
Executable file
|
@ -0,0 +1,90 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $(pwd))
|
||||
BRANCH=
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
|
||||
TMP=/tmp/$PACKAGER
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories
|
||||
|
||||
DOCS="*.txt"
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS=""
|
||||
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
|
||||
hg clone http://hg.suckless.org/st $REPOSITORIES/$PRGNAM
|
||||
else
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
hg pull -u
|
||||
)
|
||||
fi
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
|
||||
tar xf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
else
|
||||
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
|
||||
fi
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
|
||||
# configuration
|
||||
|
||||
|
||||
# compilation
|
||||
make -j3 PREFIX=$PREFIX
|
||||
|
||||
# installation
|
||||
make install DESTDIR=$PKG PREFIX=$PREFIX MANPREFIX=$PREFIX/man
|
||||
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
find $PKG -name \.hg\* -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 (st is a simple terminal implementation for X.)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://st.suckless.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$PACKAGER.txz
|
90
xap/tabbed/tabbed.SlackBuild
Executable file
90
xap/tabbed/tabbed.SlackBuild
Executable file
|
@ -0,0 +1,90 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $(pwd))
|
||||
BRANCH=
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
|
||||
TMP=/tmp/$PACKAGER
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories
|
||||
|
||||
DOCS="*.txt"
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS=""
|
||||
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
|
||||
hg clone http://hg.suckless.org/tabbed $REPOSITORIES/$PRGNAM
|
||||
else
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
hg pull -u
|
||||
)
|
||||
fi
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
if [ -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
|
||||
tar xf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
else
|
||||
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
|
||||
fi
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
|
||||
# configuration
|
||||
|
||||
|
||||
# compilation
|
||||
make -j3 PREFIX=$PREFIX
|
||||
|
||||
# installation
|
||||
make install DESTDIR=$PKG PREFIX=$PREFIX MANPREFIX=$PREFIX/man
|
||||
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
find $PKG -name \.hg\* -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 ()
|
||||
$PRGNAM:
|
||||
$PRGNAM: Simple generic tabbed fronted to xembed aware applications, originally
|
||||
$PRGNAM: designed for surf but also usable with many other application, i.e. uzbl,
|
||||
$PRGNAM: urxvt and xterm
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://tools.suckless.org/tabbed
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$PACKAGER.txz
|
Loading…
Reference in a new issue