62 lines
1.6 KiB
Bash
Executable file
62 lines
1.6 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
CWD=$(pwd)
|
|
PRGNAM=$(basename $CWD)
|
|
VERSION=git_$(date +%Y.%m.%d_%H.%M)
|
|
ARCH=$(uname -m)
|
|
BUILD=1
|
|
|
|
|
|
PREFIX=/usr
|
|
LIBSUFFIX=$(echo $ARCH | grep -o 64)
|
|
|
|
TAG=cyco
|
|
TMP=/tmp/$TAG
|
|
PKG=$TMP/pkg-$PRGNAM
|
|
OUTPUT=/tmp
|
|
|
|
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
|
|
|
if [ -e $REPOSITORIES/$PRGNAM ] ; then
|
|
( cd $REPOSITORIES/$PRGNAM
|
|
git pull
|
|
)
|
|
else
|
|
git clone http://repo.or.cz/r/conkeror.git $REPOSITORIES/$PRGNAM
|
|
fi
|
|
|
|
mkdir -p $PKG$PREFIX/libexec/
|
|
cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/libexec/
|
|
cd $PKG$PREFIX/libexec/$PRGNAM
|
|
make conkeror-spawn-helper
|
|
rm -fr .git .gitignore
|
|
|
|
mkdir -p $PKG$PREFIX/bin
|
|
cd $PKG$PREFIX/bin
|
|
ln -s ../libexec/$PRGNAM/conkeror-spawn-helper conkeror-spawn-helper
|
|
ln -s ../libexec/$PRGNAM/contrib/run-conkeror run-conkeror
|
|
ln -s run-conkeror conkeror
|
|
|
|
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
|
cd $PKG$PREFIX/doc/$PRGNAM
|
|
for d in COPYING CREDITS INSTALL help ; do
|
|
ln -s ../../libexec/$PRGNAM/$d $d
|
|
done
|
|
|
|
mkdir -p $PKG/install
|
|
cat <<EOF > $PKG/install/slack-desc
|
|
$PRGNAM: $PRGNAM (Web browser)
|
|
$PRGNAM:
|
|
$PRGNAM: Conkeror is a keyboard-oriented, highly-customizable, highly-extensible
|
|
$PRGNAM: web browser based on Mozilla XULRunner, written mainly in JavaScript, and
|
|
$PRGNAM: inspired by exceptional software such as Emacs and vi. Conkeror features
|
|
$PRGNAM: a sophisticated keyboard system, allowing users to run commands and interact
|
|
$PRGNAM: with content in powerful and novel ways. It is self-documenting, featuring a
|
|
$PRGNAM: powerful interactive help system.
|
|
$PRGNAM:
|
|
$PRGNAM: http://conkeror.org/
|
|
$PRGNAM:
|
|
EOF
|
|
|
|
cd $PKG
|
|
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|