Merge pull request #81 from kimperator/master

Updated  Z2 optimized Netsurf
This commit is contained in:
Kevin Mihelich 2011-06-18 10:38:17 -07:00
commit d0c88df870
5 changed files with 47 additions and 10 deletions

View file

@ -1,13 +1,17 @@
# Maintainer: Kai Uwe Jesussek <kajot@gmx.net>
pkgname=mouse-emul-git
pkgver=20110611
pkgver=20110618
pkgrel=1
plugrel=1
pkgdesc="Tiny mouse emulator"
arch=('arm' 'i686' 'x86_64')
license=('GPL2')
provides=('mouse-emul')
source=("rc-d-mouse-emul" "conf-d-mouse-emul")
md5sums=('62030a3303c2f4eb93a30b8cb81859cd'
'9771ecbee361c73e6f50b64fe1083a38')
url="https://github.com/anarsoul/mouse-emul"
makedepends=('git')
_gitroot=("https://github.com/anarsoul/mouse-emul.git")
_gitname=("mouse-emul")
@ -31,7 +35,9 @@ build() {
cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
cd ${srcdir}/${_gitname}-build
make DESTDIR=${pkgdir} install
mkdir ${pkgdir}/etc/
mkdir -p ${pkgdir}/etc/rc.d ${pkgdir}/etc/conf.d
cp ${srcdir}/rc-d-mouse-emul ${pkgdir}/etc/rc.d/mouse-emul
cp ${srcdir}/conf-d-mouse-emul ${pkgdir}/etc/conf.d/mouse-emul
touch ${pkgdir}/etc/mouse-emulrc
}
package() {

View file

@ -0,0 +1 @@
MOUSE_DAEMON_ARGS="-d /dev/input/event0"

View file

@ -0,0 +1,33 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
[ -f /etc/conf.d/mouse-emul ] && . /etc/conf.d/mouse-emul
function call_mouseemul() {
echo "foo"
}
case "$1" in
start)
stat_busy "Starting mouse-emul"
/usr/local/bin/mouse-emul $MOUSE_DAEMON_ARGS&
add_daemon mouse-emul
stat_done
;;
stop)
stat_busy "Stopping mouse-emul"
killall mouse-emul
rm_daemon mouse-emul
stat_done
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0

View file

@ -1,16 +1,17 @@
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Thanks to: Georgij Kondratjev <smpuj@bk.ru>
plugrel=2
plugrel=1
pkgname=netsurf-svn-z2
pkgver=12470
pkgver=12488
pkgrel=1
pkgdesc="Lightweight and fast web browser"
arch=('arm' 'i686' 'x86_64')
url="http://www.netsurf-browser.org/"
license=("GPL")
depends=('libnsfb-svn' 'libmng' 'curl' 'lcms' 'librsvg' 'libnsbmp-svn' 'libnsgif-svn' 'libcss-svn' 'hubbub-svn' 'libpng' 'libmng' 'mouse-emul-git')
depends=('libnsfb-svn' 'libmng' 'curl' 'lcms' 'librsvg' 'libnsbmp-svn' 'libnsgif-svn' 'libcss-svn' 'hubbub-svn' 'libpng' 'libmng')
optdepends=('mouse-emul-git: Mouse emulation')
makedepends=('subversion')
provides=('netsurf')
conflicts=('netsurf')
@ -18,7 +19,7 @@ source=('0002-netsurf-add-zipit-keymap.patch' '0004-curl-disable-verify-peer.pa
md5sums=('36f5e546979269d93196ceedaa1f6fe8'
'41f9b588580af155e563412664935172'
'50e1d946985d5d5ae0e85e3f54bdbfd2'
'5697422f8ebe615821ff4c8c476c0024')
'7ce7ad37c1375201d40f9690d4e12e2d')
_svntrunk=svn://svn.netsurf-browser.org/trunk/netsurf
_svnmod=netsurf-svn

View file

@ -1,6 +1,2 @@
#!/bin/sh
killall mouse-emul > /dev/null 2>&1
mouse-emul -d /dev/input/event0&
NETSURFRES=/usr/share/netsurf/res /usr/bin/nsfb $*
killall mouse-emul > /dev/null 2>&1