diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-24 20:15:33 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-25 22:58:08 +0700 |
commit | b7c78ca70dd6a579f72b5564772cbf3cc9740500 (patch) | |
tree | 89c12d901195b7259af4682cfb17792784e0cd42 /development/mtd-utils | |
parent | c981ca10f3c3288d00ce926f6f286a8145f74552 (diff) | |
download | slackbuilds-b7c78ca70dd6a579f72b5564772cbf3cc9740500.tar.gz |
development/mtd-utils: Updated for version 2.1.2.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/mtd-utils')
-rw-r--r-- | development/mtd-utils/mtd-utils.SlackBuild | 26 | ||||
-rw-r--r-- | development/mtd-utils/mtd-utils.info | 6 |
2 files changed, 20 insertions, 12 deletions
diff --git a/development/mtd-utils/mtd-utils.SlackBuild b/development/mtd-utils/mtd-utils.SlackBuild index 0bc965bd4b..7391ce9a85 100644 --- a/development/mtd-utils/mtd-utils.SlackBuild +++ b/development/mtd-utils/mtd-utils.SlackBuild @@ -25,14 +25,14 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mtd-utils -VERSION=${VERSION:-1.5.2} +VERSION=${VERSION:-2.1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -50,8 +50,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -80,11 +80,19 @@ find -L . \ -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ - make \ - MANDIR=/usr/man -make install \ - MANDIR=/usr/man \ - DESTDIR=$PKG +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/development/mtd-utils/mtd-utils.info b/development/mtd-utils/mtd-utils.info index b46428fc59..66f410e695 100644 --- a/development/mtd-utils/mtd-utils.info +++ b/development/mtd-utils/mtd-utils.info @@ -1,8 +1,8 @@ PRGNAM="mtd-utils" -VERSION="1.5.2" +VERSION="2.1.2" HOMEPAGE="http://www.linux-mtd.infradead.org/" -DOWNLOAD="ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-1.5.2.tar.bz2" -MD5SUM="596bc7b20a6d4fb86d63fc9b8af674d6" +DOWNLOAD="ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-2.1.2.tar.bz2" +MD5SUM="19191bc0195a779c0bd1284c886084ab" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |