Merge branch 'master' of github.com:cycojesus/slackbuilds

This commit is contained in:
Gwenhael Le moine 2010-03-04 19:10:16 +07:00
commit 1033b8f66e
4 changed files with 327 additions and 0 deletions

View file

@ -0,0 +1,78 @@
#!/bin/sh -x
# variables
VERSION=master_$(date +"%Y.%m.%d_%H.%M")
BUILD=1
PACKAGER=cyco
TMP=/tmp
CWD=$(pwd)
PRGNAM=$(basename $CWD)
PKG=$TMP/$PACKAGER/pkg-$PRGNAM
ARCH=$(uname -m)
REPOSITORY=/home/cycojesus/projets/packages/repositories/$PRGNAM
PREFIX=/usr
EMACS=$(basename $(ls /usr/bin/emacs-2*))
EMACS_VERSION=$(echo "$EMACS" | grep -o "\-[0-9\.]*\-" | tr -d - | head -n1)
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $PKG
# mise en place
cd $TMP
if [ ! -e $REPOSITORY ] ; then
mkdir -p $(dirname $REPOSITORY)
cd $(dirname $REPOSITORY)
git clone "git://github.com/nyuhuhuu/gmaps-static-el.git" $PRGNAM
fi
( cd $REPOSITORY
git pull
)
mkdir -p $PKG$PREFIX/share/emacs/site-lisp
cp -R $REPOSITORY $PKG$PREFIX/share/emacs/site-lisp
( cd $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM
rm -fr .git
$EMACS -batch -f batch-byte-compile *.el
)
# correction
( cd $PKG
chown -R root:root *
)
# embaumement
mkdir -p $PKG/install
cat <<EOF > $PKG/install/slack-desc
# 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------------------------------------------------------|
$PRGNAM: $PRGNAM (Google Maps in Emacs)
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: http://github.com/nyuhuhuu/gmaps-static-el
$PRGNAM:
EOF
# empaquetage
cd $PKG
makepkg -l y -c n $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD$PACKAGER.txz

View file

@ -0,0 +1,59 @@
diff -Nur xf86-input-evtouch-0.8.8/evtouch.c xf86-input-evtouch-0.8.8-patched/evtouch.c
--- xf86-input-evtouch-0.8.8/evtouch.c 2008-11-11 15:47:55.000000000 +0700
+++ xf86-input-evtouch-0.8.8-patched/evtouch.c 2010-03-04 16:32:40.670484045 +0700
@@ -30,8 +30,8 @@
#define _evdev_touch_C_
-#include <xf86Version.h>
-#if XF86_VERSION_CURRENT >= XF86_VERSION_NUMERIC(3,9,0,0,0)
+#include <xorgVersion.h>
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(3,9,0,0,0)
#define XFREE86_V4
#endif
@@ -74,11 +74,11 @@
#include "xf86_OSproc.h"
#include "xf86Xinput.h"
#include "exevents.h"
-#include "xf86OSmouse.h"
+//#include "xf86OSmouse.h"
#include "randrstr.h"
-#ifndef NEED_XF86_TYPES
-#define NEED_XF86_TYPES /* for xisb.h when !XFree86LOADER */
+#ifndef NEED_XORG_TYPES
+#define NEED_XORG_TYPES /* for xisb.h when !XFree86LOADER */
#endif
#define DBG(lvl, f) {if ((lvl) <= debug_level) f;}
@@ -139,7 +139,7 @@
"Kenan Esau",
MODINFOSTRING1,
MODINFOSTRING2,
- XF86_VERSION_CURRENT,
+ XORG_VERSION_CURRENT,
0, 8, 8,
ABI_CLASS_XINPUT,
ABI_XINPUT_VERSION,
@@ -653,8 +653,8 @@
* Device reports motions on 2 axes in absolute coordinates.
* Axes min and max values are reported in raw coordinates.
*/
- if (InitValuatorClassDeviceStruct(dev, 2, xf86GetMotionEvents,
- local->history_size, Absolute) == FALSE)
+ if (InitValuatorClassDeviceStruct(dev, 2, (int)xf86GetMotionEvents,
+ local->history_size) == FALSE)
{
ErrorF ("Unable to allocate EVTouch touchscreen ValuatorClassDeviceStruct\n");
return !Success;
@@ -673,6 +673,9 @@
xf86InitValuatorDefaults(dev, 1);
#else
xf86InitValuatorAxisStruct(dev, 0, priv->min_x, priv->max_x,
+ 1024,
+ EV_AXIS_MIN_RES /* min_res */ ,
+ EV_AXIS_MAX_RES /* max_res */ );
xf86InitValuatorDefaults(dev, 1);
#endif

View file

@ -0,0 +1,100 @@
#!/bin/sh -x
#NOTE: Needs File::Next (cpan -i File::Next)
# variables
TMP=/tmp
CWD=$(pwd)
APP_NAME=$(basename $CWD)
PKG=$TMP/package-$APP_NAME
VERSION=0.8.8
EXT=tar.xz
DOCS="AUTHORS ChangeLog COPYING INSTALL NEWS README TODO"
ARCH=$(uname -m)
BUILD=1cyco
PREFIX=/usr
SLCKFLAGS="-fPIC -O2"
REPOSITORIES=/home/cycojesus/projets/packages/repositories
# nettoyage préalable
rm -fr $PKG $TMP/$APP_NAME-$VERSION
mkdir -p $PKG
# mise en place
if [ ! -e $CWD/xf86-input-evtouch-$VERSION.tar.bz2 ] ; then
( cd $CWD
wget -c http://www.conan.de/touchscreen/xf86-input-evtouch-$VERSION.tar.bz2
)
fi
cd $TMP
tar xf $CWD/xf86-input-evtouch-$VERSION.tar.bz2
cd $TMP/$APP_NAME-$VERSION
patch -p1 -i $CWD/hacks.diff
# configuration
CFLAGS="$SLCKFLAGS" \
CPPFLAGS="$SLCKFLAGS" \
./configure \
--prefix=$PREFIX \
--mandir=$PREFIX/man \
--libdir=$PREFIX/lib$(echo "$ARCH" | grep -o "64") \
--enable-udevinstall \
--enable-evcalibrate
# compilation
make -j3 PREFIX=$PREFIX
# installation
make install DESTDIR=$PKG
mkdir -p $PKG$PREFIX/bin
( cd $PKG$PREFIX/bin
ln -s ../lib$(echo "$ARCH" | grep -o "64")/xf86-input-evtouch/ev_calibrate ev_calibrate
ln -s ../lib$(echo "$ARCH" | grep -o "64")/xf86-input-evtouch/calibrate.sh calibrate.sh
)
# correction
cd $PKG
chown -R root:root *
mkdir -p $PKG/usr/doc/$APP_NAME-$VERSION
cd $TMP/$APP_NAME-$VERSION
cp -R $DOCS $PKG/usr/doc/$APP_NAME-$VERSION
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
# Strip binaries
( 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
)
# embaumement
mkdir -p $PKG/install
cat <<EOF > $PKG/install/slack-desc
$APP_NAME: $APP_NAME (Linux-Touchscreen Driver for X)
$APP_NAME:
$APP_NAME: Evtouch is a Touchscreen-Driver for X.
$APP_NAME:
$APP_NAME:
$APP_NAME:
$APP_NAME:
$APP_NAME:
$APP_NAME:
$APP_NAME: http://www.conan.de/touchscreen/evtouch.html
$APP_NAME:
EOF
# empaquetage
cd $PKG
makepkg -l y -c n $TMP/$APP_NAME-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD.txz

View file

@ -0,0 +1,90 @@
#!/bin/sh -x
# variables
TMP=/tmp
CWD=$(pwd)
APP_NAME=$(basename $CWD)
PKG=$TMP/package-$APP_NAME
VERSION=0.4.0
EXT=tar.xz
DOCS="AUTHORS ChangeLog COPYING INSTALL NEWS README TODO"
ARCH=$(uname -m)
BUILD=1cyco
PREFIX=/usr
SLCKFLAGS="-fPIC -O2"
# nettoyage préalable
rm -fr $PKG $TMP/$APP_NAME-$VERSION
mkdir -p $PKG
# mise en place
if [ ! -e $CWD/xf86-input-plpevtch-$VERSION.tar.bz2 ] ; then
( cd $CWD
wget -c http://download.plop.at/files/plpevtch/xf86-input-plpevtch-$VERSION.tar.gz
)
fi
cd $TMP
tar xf $CWD/xf86-input-plpevtch-$VERSION.tar.gz
cd $TMP/$APP_NAME-$VERSION
patch -p1 -i $CWD/hacks.diff
# configuration
CFLAGS="$SLCKFLAGS" \
CPPFLAGS="$SLCKFLAGS" \
./configure \
--prefix=$PREFIX \
--mandir=$PREFIX/man \
--libdir=$PREFIX/lib$(echo "$ARCH" | grep -o "64")
# compilation
make -j3 PREFIX=$PREFIX
# installation
make install DESTDIR=$PKG
# correction
cd $PKG
chown -R root:root *
mkdir -p $PKG/usr/doc/$APP_NAME-$VERSION
cd $TMP/$APP_NAME-$VERSION
cp -R $DOCS $PKG/usr/doc/$APP_NAME-$VERSION
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
# Strip binaries
( 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
)
# embaumement
mkdir -p $PKG/install
cat <<EOF > $PKG/install/slack-desc
$APP_NAME: $APP_NAME (Xorg Evdev Touchscreen Driver)
$APP_NAME:
$APP_NAME: The plpevtch driver is an eventdevice driver for touchscreens under Xorg 7.x.
$APP_NAME:
$APP_NAME:
$APP_NAME:
$APP_NAME:
$APP_NAME:
$APP_NAME:
$APP_NAME: http://www.plop.at/en/touchscreen.html
$APP_NAME:
EOF
# empaquetage
cd $PKG
makepkg -l y -c n $TMP/$APP_NAME-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD.txz