diff options
Diffstat (limited to 'graphics/gtkam/gtkam.SlackBuild')
-rw-r--r-- | graphics/gtkam/gtkam.SlackBuild | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/graphics/gtkam/gtkam.SlackBuild b/graphics/gtkam/gtkam.SlackBuild index 18d1b5f357..8c41c56cc9 100644 --- a/graphics/gtkam/gtkam.SlackBuild +++ b/graphics/gtkam/gtkam.SlackBuild @@ -23,16 +23,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=gtkam -VERSION=0.1.16.1 +VERSION=0.1.17 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -62,7 +60,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -71,7 +69,6 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; - # Add --without-gimp if you don't want to compile the GIMP plugin CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -90,20 +87,16 @@ sed -i "s,$(egrep ^gtkamdocdir Makefile),gtkamdocdir = /usr/doc/$PRGNAM-$VERSION make make install-strip DESTDIR=$PKG -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/* - # Get rid of unnecessary stuff -for i in gnome omf; do - rm -rf $PKG/usr/share/$i &> /dev/null -done +rm -rf $PKG/usr/share/{gnome,omf} gzip -9 $PKG/usr/man/man?/$PRGNAM.? +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + mkdir -p $PKG/install -for i in slack-desc doinst.sh; do - cat $CWD/$i > $PKG/install/$i -done +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |