diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-05-19 09:47:24 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-05-19 18:39:57 +0700 |
commit | 2885691771a89e4613d847dc2051501175118364 (patch) | |
tree | 027a4a013e57bd4d14a998320d32e06fca45b658 /system/udftools/udftools.SlackBuild | |
parent | 40b7a25a32ffd45263ced632e4b7cb06ea2fa1f5 (diff) |
system/udftools: Updated for version 2.3.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/udftools/udftools.SlackBuild')
-rw-r--r-- | system/udftools/udftools.SlackBuild | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/system/udftools/udftools.SlackBuild b/system/udftools/udftools.SlackBuild index 8f209ab7a5062..071685fc83f81 100644 --- a/system/udftools/udftools.SlackBuild +++ b/system/udftools/udftools.SlackBuild @@ -22,13 +22,13 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=udftools -VERSION=${VERSION:-1.0.0b3} -BUILD=${BUILD:-2} +VERSION=${VERSION:-2.3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -39,8 +39,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" @@ -63,15 +63,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -patch -p1 < $CWD/fix-compiler-errors.patch - -# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778153 -patch -p1 < $CWD/udftools-1.0.0b3-gcc5.patch + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -86,6 +81,9 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +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 + find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done |