mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
system/halevt: Miscellaneous cleanups.
This commit is contained in:
parent
306f3eac27
commit
8f3b98210d
2 changed files with 18 additions and 10 deletions
|
@ -8,7 +8,7 @@ Halevt can also report all the hal events that are emitted by hald
|
|||
a program able to use HAL to mount, umount devices, and keep a list of
|
||||
devices handled by halevt-mount.
|
||||
|
||||
Some of the examples require gtkdialog or Xdialog (SlackBuilds available)
|
||||
and alltray (not available yet for Slackware 13.0)
|
||||
Some of the examples require gtkdialog or Xdialog (both of which are in the
|
||||
SlackBuilds.org repo) or alltray (not in SlackBuilds.org repo).
|
||||
|
||||
This requires boolstuff.
|
||||
|
|
|
@ -6,10 +6,19 @@
|
|||
|
||||
PRGNAM=halevt
|
||||
VERSION=${VERSION:-0.1.6.1}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) export ARCH=i486 ;;
|
||||
arm*) export ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) export ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
|
@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then
|
|||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
SLKLDFLAGS=""; LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -60,19 +72,15 @@ 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
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
|
||||
cp -a ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \
|
||||
cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a examples/{*.xml,*.sh} \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION/examples
|
||||
cp -a examples/{*.xml,*.sh} $PKG/usr/doc/$PRGNAM-$VERSION/examples
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
Loading…
Reference in a new issue