Merge branch 'master' of github.com:cycojesus/slackbuilds
This commit is contained in:
commit
d4e58f09e3
40 changed files with 511 additions and 246 deletions
22
SBo/gem2tgz/README
Normal file
22
SBo/gem2tgz/README
Normal file
|
@ -0,0 +1,22 @@
|
|||
Script to create Slackware packages from rubygems.
|
||||
|
||||
see ./gem2tgz --help for more details and the full list of options.
|
||||
|
||||
Examples:
|
||||
- Create packages for rails and all its dependencies:
|
||||
gem2tgz --gem rails
|
||||
|
||||
- Create packages for rails, version 3.0.4 and all its dependencies:
|
||||
gem2tgz --gem rails --version 3.0.4
|
||||
|
||||
- Create and install packages for rails, version 3.0.4 and all its dependencies:
|
||||
gem2tgz --gem rails --version 3.0.4 --install
|
||||
|
||||
- Create packages for rails only (no dependencies):
|
||||
gem2tgz --gem rails --version 3.0.4 --no-deps
|
||||
|
||||
- Generate packages for ALL gems installed locally
|
||||
gem2tgz --backup
|
||||
|
||||
- Display a list of gems installed in more than one version (can be used in /etc/slackpkg/blacklist)
|
||||
gem2tgz --duplicates
|
47
SBo/gem2tgz/gem2tgz.SlackBuild
Executable file
47
SBo/gem2tgz/gem2tgz.SlackBuild
Executable file
|
@ -0,0 +1,47 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for gem2tgz
|
||||
|
||||
# Written by Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
||||
|
||||
PRGNAM=gem2tgz
|
||||
VERSION=1.1
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
ARCH=noarch
|
||||
|
||||
SRCNAM="cycojesus-gem2tgz-v1.1-0-ge3dd583.tar.gz"
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e # Exit on most errors
|
||||
|
||||
rm -fr $TMP/$PRGNAM-$VERSION $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
tar xvf $CWD/$SRCNAM
|
||||
mv cycojesus-gem2tgz-139fea7 $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 {} \;
|
||||
|
||||
mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION}
|
||||
cp gem2tgz $PKG/usr/bin
|
||||
chmod +x $PKG/usr/bin/gem2tgz
|
||||
|
||||
cp README TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
9
SBo/gem2tgz/gem2tgz.info
Normal file
9
SBo/gem2tgz/gem2tgz.info
Normal file
|
@ -0,0 +1,9 @@
|
|||
PRGNAM="gem2tgz"
|
||||
VERSION="1.1"
|
||||
HOMEPAGE="http://github.com/cycojesus/gem2tgz"
|
||||
DOWNLOAD="https://github.com/cycojesus/gem2tgz/tarball/v1.1"
|
||||
MD5SUM="930c0f7c8f5efa6c1ebbafd05ab04a79"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Gwenhael Le Moine"
|
||||
EMAIL="gwenhael.le.moine@gmail.com"
|
19
SBo/gem2tgz/slack-desc
Normal file
19
SBo/gem2tgz/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 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------------------------------------------------------|
|
||||
gem2tgz: gem2tgz (Rubygems' Slackware's packager)
|
||||
gem2tgz:
|
||||
gem2tgz: Make Slackware packages out of Rubygems.
|
||||
gem2tgz:
|
||||
gem2tgz:
|
||||
gem2tgz:
|
||||
gem2tgz:
|
||||
gem2tgz:
|
||||
gem2tgz:
|
||||
gem2tgz: http://github.com/cycojesus/gem2tgz
|
||||
gem2tgz:
|
||||
|
|
@ -1,13 +1,12 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
#!/bin/sh -x
|
||||
|
||||
PRGNAM=httrack
|
||||
VERSION=3.43.12
|
||||
VERSION=3.44.1
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "64")
|
||||
|
||||
CWD=$(pwd)
|
||||
TAG=cyco
|
||||
|
@ -18,64 +17,49 @@ PKG=$TMP/pkg-$PRGNAM
|
|||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-*
|
||||
rm -fr $PKG
|
||||
)
|
||||
rm -fr $TMP/$PRGNAM-* $PKG
|
||||
|
||||
# Fetching sources
|
||||
( cd $TMP
|
||||
if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
|
||||
( cd $CWD
|
||||
wget -c "http://download.httrack.com/cserv.php3?File=httrack.tar.gz"
|
||||
)
|
||||
fi
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
)
|
||||
|
||||
VERSION=$(echo $VERSION | tr - .)
|
||||
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 . \
|
||||
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
|
||||
./configure \
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--libdir=$PREFIX/lib$LIBSUFFIX
|
||||
|
||||
make
|
||||
make
|
||||
|
||||
make install DESTDIR=$PKG
|
||||
)
|
||||
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
|
||||
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/man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
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
|
||||
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
|
||||
|
@ -89,6 +73,4 @@ $PRGNAM: http://www.httrack.com/
|
|||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||
)
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
set -x
|
||||
|
||||
PRGNAM=nut
|
||||
VERSION=${VERSION:-16.7}
|
||||
VERSION=${VERSION:-16.8}
|
||||
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
set -x
|
||||
|
||||
PRGNAM=webrowse
|
||||
VERSION=1.6.3
|
||||
VERSION=1.7.0
|
||||
|
||||
BUILD=1
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ set -x -e
|
|||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-1.2.0}
|
||||
VERSION=${VERSION:-1.3.0-alpha4}
|
||||
ARCH=${ARCH:-java}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
|
|
|
@ -19,71 +19,57 @@ PKG=$TMP/pkg-$PRGNAM
|
|||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
)
|
||||
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*
|
||||
)
|
||||
[ ! -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 $TMP/$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
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
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
./configure \
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--infodir=$PREFIX/info \
|
||||
--libdir=$PREFIX/lib$LIBSUFFIX \
|
||||
--enable-experimental #I heart danger
|
||||
)
|
||||
|
||||
# Building
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make
|
||||
)
|
||||
make
|
||||
|
||||
# Installation
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make install DESTDIR=$PKG
|
||||
)
|
||||
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
|
||||
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 {} \;
|
||||
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 . \
|
||||
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
|
||||
mkdir install
|
||||
cat <<EOF > $PKG/install/doinst.sh
|
||||
cd /usr/info
|
||||
for file in \$(ls *.gz | grep -v ".*\-[0-9]\+\.gz")
|
||||
do
|
||||
|
@ -91,7 +77,7 @@ do
|
|||
done
|
||||
EOF
|
||||
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (programming language)
|
||||
$PRGNAM:
|
||||
$PRGNAM: a programming language designed for scientific computations.
|
||||
|
@ -105,6 +91,5 @@ $PRGNAM: http://www.rpl2.net/
|
|||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||
)
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=1.1
|
||||
BUILD=1
|
||||
|
||||
ARCH=noarch
|
||||
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
[ ! -e $CWD/essentialjsdesignpatterns$VERSION.zip ] && wget -c http://www.addyosmani.com/resources/essentialjsdesignpatterns/book/essentialjsdesignpatterns$VERSION.zip -O $CWD/essentialjsdesignpatterns$VERSION.zip
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||
unzip $CWD/essentialjsdesignpatterns$VERSION.zip -d $PKG$PREFIX/doc/$PRGNAM
|
||||
rm -fr $PKG$PREFIX/doc/$PRGNAM/__MACOSX
|
||||
find $PKG$PREFIX/doc/$PRGNAM/ -name .DS_Store -delete
|
||||
|
||||
cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM («Essential JavaScript Patterns» book)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: Authored By Addy Osmani
|
||||
$PRGNAM: Copyright 2011 © Addy Osmani.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.addyosmani.com/resources/essentialjsdesignpatterns/book/
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
55
doc/Network-programming-with-Go/Network-programming-with-Go.SlackBuild
Executable file
55
doc/Network-programming-with-Go/Network-programming-with-Go.SlackBuild
Executable file
|
@ -0,0 +1,55 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
ARCH=noarch
|
||||
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories/
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
|
||||
mkdir -p $REPOSITORIES/$PRGNAM
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
httrack http://jan.newmarch.name/go/index.html
|
||||
)
|
||||
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 («Network programming with Go» book)
|
||||
$PRGNAM:
|
||||
$PRGNAM: An e-book on building network applications using the Google Go programming language.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: Copyright Jan Newmarch, jan@newmarch.name
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://jan.newmarch.name/go/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -0,0 +1,55 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
ARCH=noarch
|
||||
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories/
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
|
||||
mkdir -p $REPOSITORIES/$PRGNAM
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
httrack http://scheme.com/tspl4/
|
||||
)
|
||||
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 («The Scheme Programming Language» book)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Fourth Edition
|
||||
$PRGNAM:
|
||||
$PRGNAM: R. Kent Dybvig
|
||||
$PRGNAM:
|
||||
$PRGNAM: Illustrations by Jean-Pierre Hébert
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://scheme.com/tspl4/
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
47
doc/learn-elisp-for-emacs/learn-elisp-for-emacs.SlackBuild
Executable file
47
doc/learn-elisp-for-emacs/learn-elisp-for-emacs.SlackBuild
Executable file
|
@ -0,0 +1,47 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
[ -e $CWD/Learn-eLisp-For-Emacs.pdf ] && mv $CWD/Learn-eLisp-For-Emacs.pdf $CWD/Learn-eLisp-For-Emacs.pdf.orig
|
||||
wget -c http://learn-elisp-for-emacs.org/files/Learn-eLisp-For-Emacs.pdf -O $CWD/Learn-eLisp-For-Emacs.pdf
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||
cp -R $CWD/Learn-eLisp-For-Emacs.pdf $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
( cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM («Learn eLisp For Emacs» book)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://learn-elisp-for-emacs.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||
)
|
55
doc/sinatra-book/sinatra-book.SlackBuild
Executable file
55
doc/sinatra-book/sinatra-book.SlackBuild
Executable file
|
@ -0,0 +1,55 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
ARCH=noarch
|
||||
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories/
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
|
||||
mkdir -p $REPOSITORIES/$PRGNAM
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
httrack http://sinatra-book.gittr.com/
|
||||
)
|
||||
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 (A book about the sinatra ruby micro-framework)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://sinatra-book.gittr.com/
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -3,7 +3,7 @@
|
|||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%M")
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
ARCH=noarch
|
||||
|
|
|
@ -27,10 +27,10 @@
|
|||
# Modified by Patrick Volkerding <volkerdi@slackware.com>
|
||||
# Modified by Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
||||
|
||||
ONLY_X11=1
|
||||
ONLY_X11=${ONLY_X11:=NO}
|
||||
|
||||
PRGNAM=emacs
|
||||
BRANCH=trunk
|
||||
BRANCH=${BRANCH:=trunk}
|
||||
VERSION=${VERSION:-${BRANCH}_$(date +"%Y.%m.%d_%H.%M")}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
NUMJOBS=${NUMJOBS:-" -j3 "}
|
||||
|
@ -50,7 +50,7 @@ fi
|
|||
CWD=$(pwd)
|
||||
TAG=cyco
|
||||
OUTPUT=/tmp
|
||||
TMP=${TMP:-/tmp}
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories/
|
||||
|
||||
|
@ -70,10 +70,7 @@ if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
|
|||
( cd $REPOSITORIES/$PRGNAM/$BRANCH
|
||||
[ -e Makefile ] && make distclean
|
||||
bzr pull
|
||||
# bzr update
|
||||
)
|
||||
# FIXME: Hackish hack
|
||||
# cp -R $REPOSITORIES/$PRGNAM/$BRANCH $TMP/$PRGNAM-$VERSION
|
||||
mkdir -p $TMP/$PRGNAM-$VERSION
|
||||
SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH
|
||||
else
|
||||
|
@ -99,8 +96,6 @@ $SRCDIR/configure \
|
|||
--program-suffix="" \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--enable-static=no \
|
||||
--enable-shared=yes \
|
||||
--with-x \
|
||||
--with-x-toolkit=gtk \
|
||||
--without-gconf \
|
||||
|
@ -123,30 +118,30 @@ EOF
|
|||
chmod +x $PKG/usr/bin/emacs
|
||||
)
|
||||
|
||||
if [ $ONLY_X11 == 0 ] ; then
|
||||
if [ ! "x$ONLY_X11" == "xYES" ] ; then
|
||||
# Also add a version of the binary that is not linked to X11:
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
|
||||
# FIXME: Hackish hack
|
||||
cp -R $REPOSITORIES/$PRGNAM/$BRANCH $TMP/$PRGNAM-$VERSION
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
|
||||
[ -e $TMP/$PRGNAM-$VERSION ] && rm -fr $TMP/$PRGNAM-$VERSION
|
||||
mkdir -p $TMP/$PRGNAM-$VERSION
|
||||
SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH
|
||||
else
|
||||
else
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1
|
||||
SRCDIR=.
|
||||
fi
|
||||
fi
|
||||
|
||||
cd $PRGNAM-$VERSION || exit 1
|
||||
chown -R root:root .
|
||||
find . \
|
||||
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 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
$SRCDIR/configure \
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
$SRCDIR/configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
|
@ -154,18 +149,16 @@ $SRCDIR/configure \
|
|||
--program-suffix="" \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--enable-static=no \
|
||||
--enable-shared=yes \
|
||||
--with-x=no \
|
||||
--without-gconf \
|
||||
--build=${ARCH}-slackware-linux
|
||||
|
||||
make $NUMJOBS || make || exit 1
|
||||
make $NUMJOBS || make || exit 1
|
||||
|
||||
# Install the non-x version:
|
||||
cat src/emacs > $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11
|
||||
chown root:root $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11
|
||||
chmod 1755 $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11
|
||||
# Install the non-x version:
|
||||
cat src/emacs > $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11
|
||||
chown root:root $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11
|
||||
chmod 1755 $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11
|
||||
fi
|
||||
|
||||
# I don't care for broken permissions.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
PRGNAM=emacswiki
|
||||
VERSION=svn_$(date +"%Y.%m.%d_%H.%M")
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
ARCH=emacs
|
||||
|
@ -9,7 +9,7 @@ ARCH=emacs
|
|||
CWD=$(pwd)
|
||||
TAG=cyco
|
||||
OUTPUT=/tmp
|
||||
TMP=${TMP:-/tmp}
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories
|
||||
|
@ -36,6 +36,7 @@ mkdir -p $PKG/$PREFIX/doc/
|
|||
mkdir -p $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM/
|
||||
( cd $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM/
|
||||
for el in \
|
||||
"quick-jump.el" \
|
||||
"alarm.el" \
|
||||
"multi-term.el" \
|
||||
"lusty-explorer.el" \
|
||||
|
@ -71,11 +72,9 @@ mkdir -p $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM/
|
|||
"cus-edit+.el" \
|
||||
"xml-rpc.el" \
|
||||
"weblogger.el" \
|
||||
"color-theme-tango.el" \
|
||||
"color-theme-inkpot.el" \
|
||||
"newsticker-notify.el" ;
|
||||
do
|
||||
ln -s "$PREFIX/doc/$PRGNAM/$el" "$el" ;
|
||||
[ -e "$PREFIX/doc/$PRGNAM/$el" ] && ln -s "$PREFIX/doc/$PRGNAM/$el" "$el" ;
|
||||
done
|
||||
)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ ARCH=emacs
|
|||
CWD=$(pwd)
|
||||
TAG=cyco
|
||||
OUTPUT=/tmp
|
||||
TMP=${TMP:-/tmp}
|
||||
TMP=${TMP:-/tmp/$TAG}
|
||||
PKG=$TMP/pkg-ruby-misc-el
|
||||
|
||||
rm -rf $PKG
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# Create working directories:
|
||||
|
|
|
@ -9,9 +9,9 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# Create working directories:
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# Create working directories:
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@ BUILD=${BUILD:-1}
|
|||
TAG=${TAG:-cyco}
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# Create working directories:
|
||||
|
|
|
@ -9,9 +9,9 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# Create working directories:
|
||||
|
|
|
@ -9,9 +9,9 @@ BUILD=${BUILD:-1}
|
|||
TAG=${TAG:-cyco}
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories/
|
||||
|
|
|
@ -9,6 +9,7 @@ BUILD=${BUILD:-1}
|
|||
TAG=${TAG:-cyco}
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ TAG=${TAG:-cyco}
|
|||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
|
|
|
@ -1,73 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
PRGNAM=$(basename $(pwd))
|
||||
VERSION=${VERSION:-0.69}
|
||||
ARCH=font
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-cyco}
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
TAG=cyco
|
||||
TMP=${TMP:-/tmp}
|
||||
PKG=$TMP/pkg-$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
|
||||
( cd $PKG$FONTDIR/
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.zip ] && \
|
||||
wget -c http://font.ubuntu.com/download/ubuntu-font-family-$VERSION+ufl.zip -O $CWD/$PRGNAM-$VERSION.zip
|
||||
unzip $CWD/$PRGNAM-$VERSION.zip
|
||||
find . -type f -name \*.ttf -exec mv {} . \;
|
||||
find . -type f -not -name \*.ttf -exec mv {} $PKG/usr/doc/$PRGNAM \;
|
||||
find . -type d -exec rm -fr {} \;
|
||||
)
|
||||
|
||||
# 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 (ubuntu font family)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://font.ubuntu.com/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# Build the package:
|
||||
cd $PKG
|
||||
makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
|
||||
cd $OUTPUT
|
||||
md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz.md5
|
||||
cd -
|
||||
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
|
||||
|
|
@ -8,7 +8,7 @@ TMP=/tmp/$TAG
|
|||
PRGNAM=$(basename $CWD)
|
||||
VERSION=1.11-1
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=1
|
||||
BUILD=3
|
||||
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
|
@ -26,6 +26,15 @@ find . -perm 777 -exec chmod 755 {} \;
|
|||
|
||||
make prefix=$PKG/usr mandir=$PKG/usr/man
|
||||
|
||||
# Racket also has a 'scribble' binary in /usr/bin
|
||||
# Scribble's scribble is in /usr/games but Racket's steal its place in $PATH
|
||||
( cd $PKG/usr/games/
|
||||
ln -s scribble scribble-scrabble
|
||||
)
|
||||
( cd $PKG/usr/man/man6/
|
||||
ln -s scribble.6.gz scribble-scrabble.6.gz
|
||||
)
|
||||
|
||||
# Compress the man page(s)
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
|
|
Loading…
Reference in a new issue