2017-03-20 09:25:37 +01:00
|
|
|
#!/bin/sh
|
2010-06-21 00:40:33 +02:00
|
|
|
|
|
|
|
# Slackware build script for LAHF fix for flash plugin
|
2013-11-13 05:48:53 +01:00
|
|
|
# Written by Ken Roberts using code scrounged from the net
|
2010-06-21 00:40:33 +02:00
|
|
|
|
|
|
|
PRGNAM=flashplugin-lahf-fix
|
2017-03-20 09:25:37 +01:00
|
|
|
VERSION=${VERSION:-0.2}
|
2010-06-21 00:40:33 +02:00
|
|
|
BUILD=${BUILD:-1}
|
|
|
|
TAG=${TAG:-_SBo}
|
|
|
|
|
|
|
|
if [ -z "${ARCH}" ]; then
|
|
|
|
ARCH="$(uname -m)"
|
|
|
|
fi
|
|
|
|
if [ "${ARCH}" != "x86_64" ] ; then
|
|
|
|
echo "This only works for x86_64 cpu's"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
CWD=$(pwd)
|
|
|
|
TMP=${TMP:-/tmp/SBo}
|
|
|
|
PKG=${TMP}/package-${PRGNAM}
|
|
|
|
OUTPUT=${OUTPUT:-/tmp}
|
|
|
|
|
|
|
|
rm -rf $PKG
|
2013-11-13 05:48:53 +01:00
|
|
|
mkdir -p $PKG/usr/lib64/mozilla/plugins $OUTPUT
|
2010-06-21 00:40:33 +02:00
|
|
|
|
|
|
|
cc -fPIC -shared -nostdlib -lc \
|
2013-11-13 05:48:53 +01:00
|
|
|
-o $PKG/usr/lib64/mozilla/plugins/flashplugin-lahf-fix.so \
|
|
|
|
$CWD/flashplugin-lahf-fix.c
|
|
|
|
chmod 0755 $PKG/usr/lib64/mozilla/plugins/flashplugin-lahf-fix.so
|
2010-06-21 00:40:33 +02:00
|
|
|
|
|
|
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
|
|
|
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README
|
|
|
|
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
|
2012-08-23 19:23:32 +02:00
|
|
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|