mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
development/gtkdialog: Miscellaneous cleanups
Remove unneeded comments. Move an info block to a more boilerplate location. Make the activity in examples/ more clearly take place in examples/. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
0c9b8ca39d
commit
c4ada05295
1 changed files with 6 additions and 7 deletions
|
@ -9,12 +9,10 @@ VERSION=${VERSION:-0.7.20}
|
|||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
@ -60,18 +58,19 @@ patch -p1 < $CWD/gtkdialog-0.7.20-variables-export-fix.patch
|
|||
patch -p1 < $CWD/redeclaration.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure --prefix=/usr
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install-strip
|
||||
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/$PRGNAM.info
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
# the NEWS and README files are empty, so this doesn't include them
|
||||
cp -a [ACIT]* examples $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
# clean up some stuff in examples/
|
||||
(cd $PKG/usr/doc/$PRGNAM-$VERSION/examples; rm -f Makefile*; chmod 0644 *)
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
find $PKG/usr/doc -name "Makefile*" -exec rm -f {} \;
|
||||
find $PKG/usr/doc -type f -exec chmod 0644 {} \;
|
||||
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/$PRGNAM.info
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
|
Loading…
Reference in a new issue