fix $OUTPUT; revamp

This commit is contained in:
Gwenhael Le Moine 2011-04-11 14:25:33 +07:00
parent 265a7f6026
commit 19a2c5070f

View file

@ -13,7 +13,7 @@ LIBSUFFIX=$(echo $ARCH | grep -o 64)
TAG=cyco TAG=cyco
TMP=/tmp/$TAG TMP=/tmp/$TAG
PKG=$TMP/pkg-$PRGNAM PKG=$TMP/pkg-$PRGNAM
OUTPUT=$TMP OUTPUT=/tmp
REPOSITORIES=/home/cycojesus/projets/packages/repositories REPOSITORIES=/home/cycojesus/projets/packages/repositories
@ -27,24 +27,21 @@ fi
mkdir -p $PKG$PREFIX/libexec/ mkdir -p $PKG$PREFIX/libexec/
cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/libexec/ cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/libexec/
( cd $PKG$PREFIX/libexec/$PRGNAM cd $PKG$PREFIX/libexec/$PRGNAM
make conkeror-spawn-helper make conkeror-spawn-helper
rm -fr .git .gitignore rm -fr .git .gitignore
)
mkdir -p $PKG$PREFIX/bin mkdir -p $PKG$PREFIX/bin
( cd $PKG$PREFIX/bin cd $PKG$PREFIX/bin
ln -s ../libexec/$PRGNAM/conkeror-spawn-helper conkeror-spawn-helper ln -s ../libexec/$PRGNAM/conkeror-spawn-helper conkeror-spawn-helper
ln -s ../libexec/$PRGNAM/contrib/run-conkeror run-conkeror ln -s ../libexec/$PRGNAM/contrib/run-conkeror run-conkeror
ln -s run-conkeror conkeror ln -s run-conkeror conkeror
)
mkdir -p $PKG$PREFIX/doc/$PRGNAM mkdir -p $PKG$PREFIX/doc/$PRGNAM
( cd $PKG$PREFIX/doc/$PRGNAM cd $PKG$PREFIX/doc/$PRGNAM
for d in COPYING CREDITS INSTALL help ; do for d in COPYING CREDITS INSTALL help ; do
ln -s ../../libexec/$PRGNAM/$d $d ln -s ../../libexec/$PRGNAM/$d $d
done done
)
mkdir -p $PKG/install mkdir -p $PKG/install
cat <<EOF > $PKG/install/slack-desc cat <<EOF > $PKG/install/slack-desc
@ -61,6 +58,5 @@ $PRGNAM: http://conkeror.org/
$PRGNAM: $PRGNAM:
EOF EOF
( cd $PKG 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
)