Merge branch 'master' of github.com:cycojesus/slackbuilds
This commit is contained in:
commit
a68733df92
3 changed files with 19 additions and 38 deletions
|
@ -3,7 +3,7 @@
|
||||||
FLTK=${FLTK:=NO}
|
FLTK=${FLTK:=NO}
|
||||||
|
|
||||||
PRGNAM=nut
|
PRGNAM=nut
|
||||||
VERSION=${VERSION:-16.13}
|
VERSION=${VERSION:-17.0}
|
||||||
|
|
||||||
BUILD=${BUILD:-2}
|
BUILD=${BUILD:-2}
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,7 @@ BUILD=1
|
||||||
TAG=cyco
|
TAG=cyco
|
||||||
TMP=/tmp/$TAG
|
TMP=/tmp/$TAG
|
||||||
PKG=$TMP/pkg-$PRGNAM
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
|
OUTPUT=/tmp
|
||||||
GZBZ2="bz2"
|
|
||||||
|
|
||||||
DOCS="ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO"
|
DOCS="ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO"
|
||||||
|
|
||||||
|
@ -80,4 +79,4 @@ EOF
|
||||||
|
|
||||||
chown -R root:root $PKG
|
chown -R root:root $PKG
|
||||||
|
|
||||||
makepkg -c n -l y $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz || exit $ERROR_MKPKG
|
makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#!/bin/sh -x
|
#!/bin/sh -x
|
||||||
|
|
||||||
# variables
|
# variables
|
||||||
VERSION=master_$(date +"%Y.%m.%d_%H.%M")
|
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||||
BUILD=1
|
BUILD=1
|
||||||
|
|
||||||
|
|
||||||
TAG=cyco
|
TAG=cyco
|
||||||
OUTPUT=/tmp
|
OUTPUT=/tmp
|
||||||
TMP=/tmp/$TAG
|
TMP=/tmp/$TAG
|
||||||
|
@ -29,45 +28,29 @@ mkdir -p $PKG
|
||||||
# mise en place
|
# mise en place
|
||||||
cd $TMP
|
cd $TMP
|
||||||
if [ ! -e $REPOSITORY ] ; then
|
if [ ! -e $REPOSITORY ] ; then
|
||||||
mkdir -p $(dirname $REPOSITORY)
|
# svn checkout "https://php-mode.svn.sourceforge.net/svnroot/php-mode/trunk/php-mode-src" $REPOSITORY
|
||||||
cd $(dirname $REPOSITORY)
|
git clone https://github.com/ejmr/php-mode.git $REPOSITORY
|
||||||
svn checkout "https://php-mode.svn.sourceforge.net/svnroot/php-mode/trunk/php-mode-src" $PRGNAM
|
else
|
||||||
|
( cd $REPOSITORY
|
||||||
|
# svn update
|
||||||
|
git pull
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
( cd $REPOSITORY
|
|
||||||
svn update
|
|
||||||
)
|
|
||||||
|
|
||||||
mkdir -p $PKG$PREFIX/share/emacs/site-lisp
|
mkdir -p $PKG$PREFIX/share/emacs/site-lisp
|
||||||
cp -R $REPOSITORY $PKG$PREFIX/share/emacs/site-lisp
|
cp -R $REPOSITORY $PKG$PREFIX/share/emacs/site-lisp
|
||||||
( cd $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM
|
cd $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM
|
||||||
$EMACS -batch -f batch-byte-compile *.el
|
$EMACS -batch -f batch-byte-compile *.el
|
||||||
make manuals
|
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM-$VERSION
|
mv Changelog.old $PKG$PREFIX/doc/$PRGNAM
|
||||||
mv html-manual *.html *.pdf *.ps.gz ChangeLog $PKG$PREFIX/doc/$PRGNAM-$VERSION
|
rm -fr .git
|
||||||
mkdir -p $PKG$PREFIX/info
|
|
||||||
mv php-mode.info.gz $PKG$PREFIX/info
|
|
||||||
rm -fr $(ls | grep -v \.el)
|
|
||||||
find $PKG -name \.svn -exec rm -fr {} \;
|
|
||||||
find $PKG -name \*\~ -exec rm -fr {} \;
|
|
||||||
)
|
|
||||||
|
|
||||||
# correction
|
# correction
|
||||||
( cd $PKG
|
cd $PKG
|
||||||
chown -R root:root *
|
chown -R root:root *
|
||||||
)
|
|
||||||
|
|
||||||
# embaumement
|
# embaumement
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
||||||
cat <<EOF > $PKG/install/doinst.sh
|
|
||||||
cd /usr/info
|
|
||||||
for file in \$(ls *.gz | grep -v ".*\-[0-9]\+\.gz")
|
|
||||||
do
|
|
||||||
install-info \$file ./dir
|
|
||||||
done
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat <<EOF > $PKG/install/slack-desc
|
cat <<EOF > $PKG/install/slack-desc
|
||||||
# HOW TO EDIT THIS FILE:
|
# HOW TO EDIT THIS FILE:
|
||||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||||
|
@ -85,11 +68,10 @@ $PRGNAM:
|
||||||
$PRGNAM:
|
$PRGNAM:
|
||||||
$PRGNAM:
|
$PRGNAM:
|
||||||
$PRGNAM:
|
$PRGNAM:
|
||||||
$PRGNAM:
|
$PRGNAM: https://github.com/ejmr/php-mode#readme
|
||||||
$PRGNAM:
|
$PRGNAM:
|
||||||
$PRGNAM: http://php-mode.sourceforge.net/
|
$PRGNAM: http://php-mode.sourceforge.net/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
cd $PKG
|
|
||||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
Loading…
Add table
Reference in a new issue