npm2tgz submitted to SBo + misc
This commit is contained in:
parent
7bf02a9f83
commit
3f995e4f26
5 changed files with 77 additions and 8 deletions
|
@ -5,7 +5,7 @@
|
|||
# Written by Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
||||
|
||||
PRGNAM=npm2tgz
|
||||
VERSION=1.3.4
|
||||
VERSION=1.3.5
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -36,7 +36,7 @@ mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION}
|
|||
cp npm2tgz $PKG/usr/bin
|
||||
chmod +x $PKG/usr/bin/npm2tgz
|
||||
|
||||
cp README.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="npm2tgz"
|
||||
VERSION="1.3.4"
|
||||
HOMEPAGE="http://github.com/gwenhael-le-moine/npm2tgz"
|
||||
DOWNLOAD="http://github.com/gwenhael-le-moine/npm2tgz/archive/1.3.4.tar.gz"
|
||||
MD5SUM="82de40cadf8dfe2f72c7c765cd4c1860"
|
||||
VERSION="1.3.5"
|
||||
HOMEPAGE="https://github.com/gwenhael-le-moine/npm2tgz"
|
||||
DOWNLOAD="https://github.com/gwenhael-le-moine/npm2tgz/archive/1.3.5.tar.gz"
|
||||
MD5SUM="a89b659eae1190f62717c21211e6833e"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="nodejs"
|
||||
|
|
68
fonts/bitmap-fonts/SlackBuild
Executable file
68
fonts/bitmap-fonts/SlackBuild
Executable file
|
@ -0,0 +1,68 @@
|
|||
#!/bin/sh
|
||||
|
||||
PRGNAM=$(basename $(pwd))
|
||||
ARCH=font
|
||||
BUILD=${BUILD:-1}
|
||||
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}
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
FONTDIR="/usr/share/fonts"
|
||||
|
||||
# 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
|
||||
|
||||
[ ! -e $REPOSITORY ] &&
|
||||
git clone https://github.com/Tecate/bitmap-fonts.git $REPOSITORY
|
||||
(cd $REPOSITORY && git pull)
|
||||
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
|
||||
|
||||
# Move the fonts into place:
|
||||
mkdir -p $PKG$FONTDIR/misc $PKG/usr/doc/$PRGNAM
|
||||
cp $REPOSITORY/README.md $PKG/usr/doc/$PRGNAM
|
||||
find $REPOSITORY/bitmap/ -name \*.pcf\* -exec mv {} $PKG$FONTDIR/misc/ \;
|
||||
|
||||
find $PKG$FONTDIR/misc/ -name \*.pcf -exec gzip {} \;
|
||||
|
||||
# Post-install script:
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOT > $PKG/install/doinst.sh
|
||||
#!/bin/sh
|
||||
# Update the X font indexes:
|
||||
if [ -x /usr/bin/mkfontdir -o -x /usr/X11R6/bin/mkfontdir ]; then
|
||||
mkfontdir usr/share/fonts/misc 2> /dev/null
|
||||
fi
|
||||
if [ -x /usr/bin/fc-cache ]; then
|
||||
/usr/bin/fc-cache -f 2> /dev/null
|
||||
fi
|
||||
EOT
|
||||
|
||||
# Add a package description:
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Monospaced bitmap fonts for X11, good for terminal use.)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://github.com/Tecate/bitmap-fonts
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# Build the package:
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz
|
|
@ -13,14 +13,15 @@ case $ARCH in
|
|||
esac
|
||||
CHANNEL=${CHANNEL:=stable}
|
||||
|
||||
cd $BUILD_DIR
|
||||
#cd $BUILD_DIR
|
||||
[ -e google-chrome-${CHANNEL}_current_$ARCH.deb ] && rm google-chrome-${CHANNEL}_current_$DEBARCH.deb
|
||||
wget -c --no-check-certificate https://dl.google.com/linux/direct/google-chrome-${CHANNEL}_current_$DEBARCH.deb
|
||||
cp $BUILD_DIR/google-chrome.SlackBuild .
|
||||
|
||||
RELEASE=$CHANNEL ./google-chrome.SlackBuild
|
||||
|
||||
upgradepkg --install-new --reinstall /tmp/google-chrome-*-$ARCH-*.txz
|
||||
|
||||
rm google-chrome-${CHANNEL}_current_$DEBARCH.deb
|
||||
rm google-chrome.SlackBuild google-chrome-${CHANNEL}_current_$DEBARCH.deb
|
||||
|
||||
#/root/clean-tmp.sh
|
||||
|
|
Loading…
Reference in a new issue