mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/cheapglk: Added (Cheapass Implementation of the Glk API).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
1500b39f3c
commit
22202a79c9
4 changed files with 113 additions and 0 deletions
10
libraries/cheapglk/README
Normal file
10
libraries/cheapglk/README
Normal file
|
@ -0,0 +1,10 @@
|
|||
cheapglk (cheapass implementation of the Glk API)
|
||||
|
||||
This is the simplest possible implementation of the Glk API. It uses
|
||||
stdio.h calls (fopen, putc, getc), but not any of the curses.h calls
|
||||
(which handle cursor movement and unbuffered keyboard input.) So
|
||||
there's no way it can support multiple windows, or a status bar. In
|
||||
fact, this library only allows you to create *one* window at a time,
|
||||
and that must be a TextBuffer. Fortunately -- well, deliberately --
|
||||
TextBuffer windows are very simple; all the library has to be able to
|
||||
do is printf() straight to stdout.
|
74
libraries/cheapglk/cheapglk.SlackBuild
Normal file
74
libraries/cheapglk/cheapglk.SlackBuild
Normal file
|
@ -0,0 +1,74 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Slackware build script for cheapglk
|
||||
|
||||
# Written by B. Watson (urchlay@slackware.uk)
|
||||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=cheapglk
|
||||
VERSION=${VERSION:-1.0.6}
|
||||
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 [ ! -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-$PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
|
||||
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
|
||||
|
||||
make OPTIONS="$SLKCFLAGS"
|
||||
mkdir -p $PKG/usr/include/$PRGNAM $PKG/usr/lib$LIBDIRSUFFIX
|
||||
cp -a *.h Make.cheapglk $PKG/usr/include/$PRGNAM
|
||||
cp -a libcheapglk.a $PKG/usr/lib$LIBDIRSUFFIX
|
||||
|
||||
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mkdir -p $PKGDOC
|
||||
cp -a LICENSE* README* $PKGDOC
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
10
libraries/cheapglk/cheapglk.info
Normal file
10
libraries/cheapglk/cheapglk.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="cheapglk"
|
||||
VERSION="1.0.6"
|
||||
HOMEPAGE="https://github.com/erkyrath/cheapglk"
|
||||
DOWNLOAD="https://github.com/erkyrath/cheapglk/archive/cheapglk-1.0.6/cheapglk-cheapglk-1.0.6.tar.gz"
|
||||
MD5SUM="a6d56a025a362bb3e10d290527c9fb61"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="urchlay@slackware.uk"
|
19
libraries/cheapglk/slack-desc
Normal file
19
libraries/cheapglk/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------------------------------------------------------|
|
||||
cheapglk: cheapglk (cheapass implementation of the Glk API)
|
||||
cheapglk:
|
||||
cheapglk: This is the simplest possible implementation of the Glk API. It uses
|
||||
cheapglk: stdio.h calls (fopen, putc, getc), but not any of the curses.h calls
|
||||
cheapglk: (which handle cursor movement and unbuffered keyboard input.) So
|
||||
cheapglk: there's no way it can support multiple windows, or a status bar. In
|
||||
cheapglk: fact, this library only allows you to create *one* window at a time,
|
||||
cheapglk: and that must be a TextBuffer. Fortunately -- well, deliberately --
|
||||
cheapglk: TextBuffer windows are very simple; all the library has to be able to
|
||||
cheapglk: do is printf() straight to stdout.
|
||||
cheapglk:
|
Loading…
Reference in a new issue