development/device-tree-compiler: Updated for version 1.4.1.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Robby Workman 2015-03-03 17:53:20 -06:00 committed by Willy Sudiarto Raharjo
parent 7de0b18ab9
commit 7d5bc8b356
2 changed files with 8 additions and 21 deletions

View file

@ -25,7 +25,7 @@
# With tweaks from rworkman to use in SlackBuilds.org tree
PRGNAM=device-tree-compiler
VERSION=${VERSION:-1.4.0}
VERSION=${VERSION:-1.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -59,9 +59,9 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION.orig
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION.orig
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -69,13 +69,6 @@ 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 {} \;
# Apply Debian patches:
# Ordinarily I wouldn't just apply them all, but having done a bit of
# reading, it seems as if it's a good idea -- plus the developers of the Trimslice
# develop on Ubuntu, so it makes sense to use as similar 'dtc' to them as possible.
xz -dc $CWD/${PRGNAM}_${VERSION}*diff.xz | patch -p1
for i in debian/patches/*.patch ; do patch -p1 < $i ; done
make clean
make CFLAGS="$SLKCFLAGS" PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX}
make install PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG
@ -83,13 +76,9 @@ make install PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} 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
mkdir -p $PKG/usr/man/man1
cp -a debian/manpages/*.1 $PKG/usr/man/man1
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
Documentation/manual.txt GPL README.license TODO \
Documentation/manual.txt GPL README* TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,10 +1,8 @@
PRGNAM="device-tree-compiler"
VERSION="1.4.0"
HOMEPAGE="http://www.jdl.com/software/dtc.git/"
DOWNLOAD="http://harrier.slackbuilds.org/misc/device-tree-compiler-1.4.0.tar.xz \
http://harrier.slackbuilds.org/misc/device-tree-compiler_1.4.0-2.diff.xz"
MD5SUM="95b013684a9211af45bc478b9c3adab7 \
76170dfaa6d7d035f21657f16a61d065"
VERSION="1.4.1"
HOMEPAGE="https://git.kernel.org/cgit/utils/dtc/dtc.git"
DOWNLOAD="http://harrier.slackbuilds.org/misc/device-tree-compiler-1.4.1.tar.xz"
MD5SUM="e0b3eda06d038377626775aa53980d20"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""