mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/libparapin: Added to 13.0 repository
This commit is contained in:
parent
cb2f74d1f0
commit
1f9c5decc4
4 changed files with 114 additions and 0 deletions
12
libraries/libparapin/README
Normal file
12
libraries/libparapin/README
Normal file
|
@ -0,0 +1,12 @@
|
|||
Parapin makes it easy to write C code under Linux that controls individual
|
||||
pins on a PC parallel port. This kind of control is very useful for
|
||||
electronics projects that use the PC's parallel port as a generic digital I/O
|
||||
interface. Parapin goes to great lengths to insulate the programmer from the
|
||||
somewhat complex parallel port programming interface provided by the PC hardware,
|
||||
making it easy to use the parallel port for digital I/O. By the same token, this
|
||||
abstraction also makes Parapin less useful in applications that need to actually
|
||||
use the parallel port as a parallel port (e.g., for talking to a printer).
|
||||
|
||||
Parapin has two "personalities": it can either be used as a user-space C library,
|
||||
or linked as part of a Linux kernel module. This SlackBuild provides user-space
|
||||
only library.
|
73
libraries/libparapin/libparapin.SlackBuild
Normal file
73
libraries/libparapin/libparapin.SlackBuild
Normal file
|
@ -0,0 +1,73 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for parapin (userspace library version only)
|
||||
|
||||
# Written by Andrzej Telszewski <atelszewski@gmail.com>
|
||||
|
||||
PRGNAM=libparapin
|
||||
SRCNAM=parapin
|
||||
VERSION=${VERSION:-1.5.1_beta1}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
SRCVERSION=$(echo $VERSION | tr _ -)
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $SRCNAM-$SRCVERSION
|
||||
tar xvf $CWD/$SRCNAM-$SRCVERSION.tgz
|
||||
cd $SRCNAM-$SRCVERSION
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# we only support building for 2.6 kernel
|
||||
set +e
|
||||
./setup-2.6.sh << EOF
|
||||
y
|
||||
EOF
|
||||
|
||||
set -e
|
||||
|
||||
CFLAGS="$SLKCFLAGS" make libparapin.a
|
||||
|
||||
mkdir -p $PKG/usr/{include,lib${LIBDIRSUFFIX}}
|
||||
cat parapin.h > $PKG/usr/include/parapin.h
|
||||
cp -a libparapin.a $PKG/usr/lib${LIBDIRSUFFIX}
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
INSTALL LICENSE README contrib doc/parapin.{html,txt} examples \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
rm $PKG/usr/doc/$PRGNAM-$VERSION/examples/.cvsignore
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$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:-tgz}
|
10
libraries/libparapin/libparapin.info
Normal file
10
libraries/libparapin/libparapin.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="libparapin"
|
||||
VERSION="1.5.1_beta1"
|
||||
HOMEPAGE="http://parapin.sourceforge.net/"
|
||||
DOWNLOAD="http://dl.sourceforge.net/parapin/parapin-1.5.1-beta1.tgz"
|
||||
MD5SUM="20ce7b997c3f907de49cc7aaa1946e00"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Andrzej Telszewski"
|
||||
EMAIL="atelszewski@gmail.com"
|
||||
APPROVED="rworkman"
|
19
libraries/libparapin/slack-desc
Normal file
19
libraries/libparapin/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 ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
libparapin: libparapin (a Parallel Port Pin Programming Library for Linux)
|
||||
libparapin:
|
||||
libparapin: Parapin makes it easy to write C code under Linux that controls
|
||||
libparapin: individual pins on a PC parallel port.
|
||||
libparapin:
|
||||
libparapin: This is a library only version of parapin (in opposite to the kernel
|
||||
libparapin: module version), which works from userspace.
|
||||
libparapin:
|
||||
libparapin:
|
||||
libparapin: Homepage: http://parapin.sourceforge.net/
|
||||
libparapin:
|
Loading…
Reference in a new issue