diff options
Diffstat (limited to 'multimedia/stills2dv/stills2dv.SlackBuild')
-rw-r--r-- | multimedia/stills2dv/stills2dv.SlackBuild | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/multimedia/stills2dv/stills2dv.SlackBuild b/multimedia/stills2dv/stills2dv.SlackBuild index 2e83f94886..685b23a174 100644 --- a/multimedia/stills2dv/stills2dv.SlackBuild +++ b/multimedia/stills2dv/stills2dv.SlackBuild @@ -5,11 +5,12 @@ # This is hereby put in the public domain PRGNAM=stills2dv -VERSION=alpha-0.601 -VERSION2=alpha_0.601 +VERSION=alpha_0.601 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCVER=$(printf $VERSION | tr _ -) + # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -44,9 +45,9 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tgz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tgz +cd $PRGNAM-$SRCVER chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -67,13 +68,13 @@ cp -a Makefile README.txt $PKG/usr/doc/$PRGNAM-$VERSION cp -a Documentation/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mkdir -p $PKG/usr/share/$PRGNAM-$VERSION -cp -a exampleworkfile.s2d $PKG/usr/share/$PRGNAM-$VERSION -cp -ar example_data_files $PKG/usr/share/$PRGNAM-$VERSION -rm -rf $PKG/usr/share/$PRGNAM-$VERSION/example_data_files/tmp +mkdir -p $PKG/usr/share/$PRGNAM-$SRCVER +cp -a exampleworkfile.s2d $PKG/usr/share/$PRGNAM-$SRCVER +cp -ar example_data_files $PKG/usr/share/$PRGNAM-$SRCVER +rm -rf $PKG/usr/share/$PRGNAM-$SRCVER/example_data_files/tmp mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION2-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |