diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2009-08-26 10:00:38 -0500 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-05-31 22:41:17 +0200 |
commit | 5a12e7c134274dba706667107d10d231517d3e05 (patch) | |
tree | 55718d5acb710fde798d9f38d0bbaf594ed4b296 /extra/source/brltty | |
download | current-5a12e7c134274dba706667107d10d231517d3e05.tar.gz |
Slackware 13.0slackware-13.0
Wed Aug 26 10:00:38 CDT 2009
Slackware 13.0 x86_64 is released as stable! Thanks to everyone who
helped make this release possible -- see the RELEASE_NOTES for the
credits. The ISOs are off to the replicator. This time it will be a
6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD.
We're taking pre-orders now at store.slackware.com. Please consider
picking up a copy to help support the project. Once again, thanks to
the entire Slackware community for all the help testing and fixing
things and offering suggestions during this development cycle.
As always, have fun and enjoy! -P.
Diffstat (limited to 'extra/source/brltty')
-rwxr-xr-x | extra/source/brltty/brltty.SlackBuild | 94 | ||||
-rw-r--r-- | extra/source/brltty/slack-desc | 19 |
2 files changed, 113 insertions, 0 deletions
diff --git a/extra/source/brltty/brltty.SlackBuild b/extra/source/brltty/brltty.SlackBuild new file mode 100755 index 00000000..c5895974 --- /dev/null +++ b/extra/source/brltty/brltty.SlackBuild @@ -0,0 +1,94 @@ +#!/bin/sh +# Set initial variables: +CWD=`pwd` +if [ "$TMP" = "" ]; then + TMP=/tmp +fi +if [ ! -d $TMP ]; then + mkdir -p $TMP # location to build the source +fi +PKG=/tmp/package-brltty + +VERSION=4.0 +ARCH=${ARCH:-x86_64} +BUILD=${BUILD:-1} + +if [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +rm -rf $PKG +mkdir -p $PKG +cd $TMP +rm -rf brltty-$VERSION +tar xf $CWD/brltty-$VERSION.tar.?z* || exit 1 +cd brltty-$VERSION + +sh autogen + +chown -R root:root . +find . -perm 775 -exec chmod 755 {} \; +find . -perm 700 -exec chmod 755 {} \; +find . -perm 744 -exec chmod 755 {} \; +find . -perm 664 -exec chmod 644 {} \; +find . -perm 600 -exec chmod 644 {} \; +./configure \ + --prefix=/usr \ + --bindir=/bin \ + --sbindir=/sbin \ + --libdir=/lib${LIBDIRSUFFIX} \ + --infodir=/usr/info \ + --mandir=/usr/man \ + --sysconfdir=/etc \ + --build=$ARCH-slackware-linux +make -j2 || exit 1 +make install INSTALL_ROOT=$PKG || exit 1 +chmod 755 $PKG/bin/* $PKG/lib${LIBDIRSUFFIX}/brltty/* + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/usr/doc/brltty-$VERSION +cp -a \ + README* COPYING* \ + Documents/{Manual-*,TODO,CONTRIBUTORS,HISTORY,README.*} \ + $PKG/usr/doc/brltty-$VERSION +cat Documents/ChangeLog | head -n 150 > $PKG/usr/doc/brltty-$VERSION/ChangeLog +( cd $PKG/usr/doc/brltty-$VERSION + find . -name "Makefile*" -exec rm -f {} \; + find . -name "*.sgml" -exec rm -f {} \; + find . -size 0 -type f -exec rm -f {} \; +) + +gzip -9 $PKG/usr/man/man?/*.? + +mkdir -p $PKG/etc +cp -a Documents/brltty.conf $PKG/etc/brltty.conf.new + +mkdir -p $PKG/install +# Write out the doinst.sh: +cat << EOF > $PKG/install/doinst.sh +config() { + NEW="\$1" + OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r \$OLD ]; then + mv \$NEW \$OLD + elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then # toss the redundant copy + rm \$NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} +config etc/brltty.conf.new + +EOF + +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +makepkg -l y -c n ../brltty-$VERSION-$ARCH-$BUILD.txz + diff --git a/extra/source/brltty/slack-desc b/extra/source/brltty/slack-desc new file mode 100644 index 00000000..d9962499 --- /dev/null +++ b/extra/source/brltty/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +brltty: brltty (Braille display daemon) +brltty: +brltty: BRLTTY is a daemon which provides access to the Linux console (text +brltty: mode) for a blind person using a soft braille display. It drives the +brltty: braille terminal and provides complete screen review functionality. +brltty: +brltty: +brltty: +brltty: +brltty: +brltty: |