summaryrefslogtreecommitdiffstats
path: root/development/device-tree-compiler/device-tree-compiler.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/device-tree-compiler/device-tree-compiler.SlackBuild')
-rw-r--r--development/device-tree-compiler/device-tree-compiler.SlackBuild19
1 files changed, 4 insertions, 15 deletions
diff --git a/development/device-tree-compiler/device-tree-compiler.SlackBuild b/development/device-tree-compiler/device-tree-compiler.SlackBuild
index 66721bcd93..f1ab07b07a 100644
--- a/development/device-tree-compiler/device-tree-compiler.SlackBuild
+++ b/development/device-tree-compiler/device-tree-compiler.SlackBuild
@@ -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