- persistent name in /usr/libexec
- automatic version guessing
This commit is contained in:
parent
1aa5e557cc
commit
305937689e
1 changed files with 5 additions and 3 deletions
|
@ -1,13 +1,14 @@
|
|||
#!/bin/sh
|
||||
set -x -e
|
||||
|
||||
PRGNAM=factor
|
||||
VERSION=2010-01-24-14-47
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$([ -e $PRGNAM-linux-*.tar.?z* ] && ls $PRGNAM-linux-*.tar.?z* | cut -d . -f 1 | cut -d - -f 5,6,7,8,9 )
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=/tmp
|
||||
PKG=$TMP/$PACKAGER/pkg-$PRGNAM
|
||||
PREFIX=/usr
|
||||
|
@ -20,6 +21,7 @@ mkdir -p $PKG$PREFIX/libexec/
|
|||
( cd $PKG$PREFIX/libexec/
|
||||
tar xf $CWD/$PRGNAM-linux-$( [ "$ARCH" = "x86_64" ] && echo "x86-64" || echo "x86-32")-$VERSION.tar.gz
|
||||
mv $PRGNAM $PRGNAM-$VERSION
|
||||
ln -s $PRGNAM-$VERSION $PRGNAM
|
||||
)
|
||||
|
||||
# installation
|
||||
|
|
Loading…
Reference in a new issue