summaryrefslogtreecommitdiff
path: root/multimedia/mkclean/mkclean.SlackBuild
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2017-10-29 21:46:23 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-11-01 07:34:00 +0700
commitc125cdb06d6a964bbec5b811161e96f17dcb5795 (patch)
tree8b8f7b1285cdb79ef49a40a829f314dad937c172 /multimedia/mkclean/mkclean.SlackBuild
parent47608949ddd1ea19289a4c68e16a3e3fa873eb83 (diff)
downloadslackbuilds-c125cdb06d6a964bbec5b811161e96f17dcb5795.tar.gz
multimedia/mkclean: Updated for version 0.8.10.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'multimedia/mkclean/mkclean.SlackBuild')
-rw-r--r--multimedia/mkclean/mkclean.SlackBuild39
1 files changed, 18 insertions, 21 deletions
diff --git a/multimedia/mkclean/mkclean.SlackBuild b/multimedia/mkclean/mkclean.SlackBuild
index 6f8a372e6b..f88147024e 100644
--- a/multimedia/mkclean/mkclean.SlackBuild
+++ b/multimedia/mkclean/mkclean.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mkclean
-VERSION=${VERSION:-0.8.9}
+VERSION=${VERSION:-0.8.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -42,13 +42,16 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- BITS=""
+ _target="gcc_linux"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- BITS=""
+ _target="gcc_linux"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
- BITS="_x64"
+ _target="gcc_linux_x64"
+elif [ "$ARCH" = "arm" ]; then
+ SLKCFLAGS="-O2"
+ _target="gcc_linux_arm"
else
SLKCFLAGS="-O2"
fi
@@ -59,7 +62,6 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-mkdir $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -69,32 +71,27 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+sed "s|/usr/local|$PKG/usr|g" -i corec/tools/coremake/gcc_mak.inc
+sed 's|arm-linux-gnueabi-||g' -i corec/tools/coremake/gcc_linux_arm.build
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
+gcc $SLKCFLAGS -o coremake corec/tools/coremake/coremake.c
+./coremake ${_target}
-make -C mkclean
+cd $PRGNAM
+make
install -d $PKG/usr/bin
-install -D -m755 release/gcc_linux${BITS}/mkWDclean $PKG/usr/bin/mkWDclean
-install -D -m755 release/gcc_linux${BITS}/mkclean $PKG/usr/bin/mkclean
-install -D -m755 release/gcc_linux${BITS}/mkcleanreg $PKG/usr/bin/mkcleanreg
+make install
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog.txt ReadMe.txt $PKG/usr/doc/$PRGNAM-$VERSION/
+cp ../ChangeLog.txt ../ReadMe.txt $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}