summaryrefslogtreecommitdiff
path: root/source/l/atk/atk.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/atk/atk.SlackBuild')
-rwxr-xr-xsource/l/atk/atk.SlackBuild25
1 files changed, 23 insertions, 2 deletions
diff --git a/source/l/atk/atk.SlackBuild b/source/l/atk/atk.SlackBuild
index f6d41da6..e0671466 100755
--- a/source/l/atk/atk.SlackBuild
+++ b/source/l/atk/atk.SlackBuild
@@ -59,7 +59,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG/usr
cd $TMP
rm -rf atk-$VERSION
-tar xvf $CWD/atk-$VERSION.tar.bz2 || exit 1
+tar xvf $CWD/atk-$VERSION.tar.xz || exit 1
cd atk-$VERSION
chown -R root:root .
find . \
@@ -82,13 +82,34 @@ 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
-#gzip -9 $PKG/usr/man/man?/*
+# Compress and link manpages, if any:
+if [ -d $PKG/usr/man ]; then
+ ( cd $PKG/usr/man
+ for manpagedir in $(find . -type d -name "man*") ; do
+ ( cd $manpagedir
+ for eachpage in $( find . -type l -maxdepth 1) ; do
+ ln -s $( readlink $eachpage ).gz $eachpage.gz
+ rm $eachpage
+ done
+ gzip -9 *.?
+ )
+ done
+ )
+fi
mkdir -p $PKG/usr/doc/atk-$VERSION
cp -a \
AUTHORS COPYING* NEWS README* TODO \
$PKG/usr/doc/atk-$VERSION
+# If there's a ChangeLog, installing at least part of the recent history
+# is useful, but don't let it get totally out of control:
+if [ -r ChangeLog ]; then
+ DOCSDIR=$(echo $PKG/usr/doc/*-$VERSION)
+ cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
+ touch -r ChangeLog $DOCSDIR/ChangeLog
+fi
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc