Added
This commit is contained in:
parent
fe89fb8f87
commit
7b4a1421ef
1 changed files with 48 additions and 0 deletions
48
doc/modern_perl/modern_perl.SlackBuild
Executable file
48
doc/modern_perl/modern_perl.SlackBuild
Executable file
|
@ -0,0 +1,48 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
|
||||
TMP=/tmp/$PACKAGER
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
FORMAT=a4 # or letter
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
[ -e $CWD/modern_perl_$FORMAT.pdf ] && mv $CWD/modern_perl_$FORMAT.pdf $CWD/modern_perl_$FORMAT.pdf.orig
|
||||
wget -c http://www.onyxneon.com/books/modern_perl/modern_perl_$FORMAT.pdf -O $CWD/modern_perl_$FORMAT.pdf
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||
cp -R $CWD/modern_perl_$FORMAT.pdf $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
( cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM («Modern Perl» book)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www.modernperlbooks.com/
|
||||
$PRGNAM: http://www.onyxneon.com/books/modern_perl/index.html
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$PACKAGER.txz
|
||||
)
|
Loading…
Add table
Reference in a new issue