Slackbuild added.
This commit is contained in:
parent
515827e830
commit
d28e0086d9
28
distro-packages/Slackware/README
Normal file
28
distro-packages/Slackware/README
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
Cthulhu is a screen reader for individuals who are blind or visually impaired,
|
||||||
|
forked from Orca. It provides access to applications and toolkits that support
|
||||||
|
the AT-SPI (e.g., the GNOME desktop).
|
||||||
|
|
||||||
|
This screen reader helps users navigate their desktop environment and applications
|
||||||
|
through speech synthesis and braille output.
|
||||||
|
|
||||||
|
After installation, you can start Cthulhu through the GNOME desktop environment
|
||||||
|
or by running 'cthulhu' from the command line.
|
||||||
|
|
||||||
|
DEPENDENCIES:
|
||||||
|
This package requires the following packages, all available from SlackBuilds.org:
|
||||||
|
- at-spi2-core
|
||||||
|
- brltty
|
||||||
|
- gobject-introspection
|
||||||
|
- gsettings-desktop-schemas
|
||||||
|
- gstreamer
|
||||||
|
- gst-plugins-base
|
||||||
|
- gst-plugins-good
|
||||||
|
- gtk3
|
||||||
|
- liblouis
|
||||||
|
- libpeas
|
||||||
|
- libwnck3
|
||||||
|
- python3-atspi
|
||||||
|
- python3-cairo
|
||||||
|
- python3-gobject
|
||||||
|
- python3-setproctitle
|
||||||
|
- speech-dispatcher
|
10
distro-packages/Slackware/cthulhu-info
Normal file
10
distro-packages/Slackware/cthulhu-info
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="cthulhu"
|
||||||
|
VERSION="0.4"
|
||||||
|
HOMEPAGE="https://git.stormux.org/storm/cthulhu"
|
||||||
|
DOWNLOAD="https://git.stormux.org/storm/cthulhu.git"
|
||||||
|
MD5SUM="SKIP"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES="at-spi2-core brltty gobject-introspection gsettings-desktop-schemas gstreamer gst-plugins-base gst-plugins-good gtk3 liblouis libpeas libwnck3 python3-atspi python3-cairo python3-gobject python3-setproctitle speech-dispatcher"
|
||||||
|
MAINTAINER="Storm Dragon"
|
||||||
|
EMAIL="storm_dragon@stormux.org"
|
94
distro-packages/Slackware/cthulhu.SLACKBUILD
Executable file
94
distro-packages/Slackware/cthulhu.SLACKBUILD
Executable file
@ -0,0 +1,94 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Slackware build script for cthulhu
|
||||||
|
# Created based on PKGBUILD from Storm Dragon <storm_dragon@stormux.org>
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=cthulhu
|
||||||
|
VERSION=${VERSION:-0.4}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_SBo}
|
||||||
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||||
|
# the name of the created package would be, and then exit. This information
|
||||||
|
# could be useful to other scripts.
|
||||||
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
TMP=${TMP:-/tmp/SBo}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
if [ "$ARCH" = "i586" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
else
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $PRGNAM-$VERSION
|
||||||
|
git clone https://git.stormux.org/storm/cthulhu.git $PRGNAM-$VERSION
|
||||||
|
cd $PRGNAM-$VERSION
|
||||||
|
|
||||||
|
chown -R root:root .
|
||||||
|
find -L . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
|
# Prepare the source
|
||||||
|
NOCONFIGURE=1 ./autogen.sh
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
make
|
||||||
|
make install 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/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a AUTHORS COPYING ChangeLog NEWS README \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
9
distro-packages/Slackware/doinst.sh
Executable file
9
distro-packages/Slackware/doinst.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||||
|
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||||
|
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
fi
|
19
distro-packages/Slackware/slack-desc
Normal file
19
distro-packages/Slackware/slack-desc
Normal file
@ -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 ':' except on otherwise blank lines.
|
||||||
|
|
||||||
|
|-----handy-ruler------------------------------------------------------|
|
||||||
|
cthulhu: cthulhu (Screen reader for blind or visually impaired users)
|
||||||
|
cthulhu:
|
||||||
|
cthulhu: Cthulhu is a screen reader for individuals who are blind or visually
|
||||||
|
cthulhu: impaired, forked from Orca. It provides a way to access applications
|
||||||
|
cthulhu: and toolkits that support the AT-SPI (e.g., the GNOME desktop).
|
||||||
|
cthulhu:
|
||||||
|
cthulhu: Homepage: https://git.stormux.org/storm/cthulhu
|
||||||
|
cthulhu:
|
||||||
|
cthulhu:
|
||||||
|
cthulhu:
|
||||||
|
cthulhu:
|
Loading…
Reference in New Issue
Block a user