diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
commit | 7b29169fff9e7c624890c5edffe85def8a293136 (patch) | |
tree | 47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/extra/community/cwiid-svn | |
parent | c491dea779dac29afff3578bf8245943817c2339 (diff) | |
download | linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2 |
LinHES 6.01.00
Diffstat (limited to 'abs/extra/community/cwiid-svn')
-rw-r--r-- | abs/extra/community/cwiid-svn/PKGBUILD | 49 | ||||
-rw-r--r-- | abs/extra/community/cwiid-svn/cwiid.install | 16 |
2 files changed, 65 insertions, 0 deletions
diff --git a/abs/extra/community/cwiid-svn/PKGBUILD b/abs/extra/community/cwiid-svn/PKGBUILD new file mode 100644 index 0000000..eba6523 --- /dev/null +++ b/abs/extra/community/cwiid-svn/PKGBUILD @@ -0,0 +1,49 @@ +#Contributor:Andrea Tarocchi <valdar@email.it> +pkgname=cwiid-svn +#pkgver=`date +%Y%m%d` +pkgver=184 +pkgrel=3 +pkgdesc="Cwiid-svn is the bleeding edge version of a wiimote's driver and utility tools" +arch=(i686 x86_64) +url="http://abstrakraft.org/cwiid/" +license=('GPL') + +depends=('gawk' 'bluez-libs' 'gtk2') +makedepends=('subversion') +conflicts=('cwiid') +provides=('cwiid') +install=('cwiid.install') +source=() +md5sums=('b3966beecae0de200c90523af8f3bf0e') + +_svntrunk=http://abstrakraft.org/cwiid/svn/trunk/ +_svnmod=cwiid + +build() { + cd $startdir/src + + svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod + #svn co $_svntrunk --config-dir ./ $_svnmod + + msg "SVN checkout done or server timeout" + msg "Starting make..." + + cp -r $_svnmod $_svnmod-build + cd $_svnmod-build + + autoreconf + + ./configure --prefix=/usr --disable-ldconfig --sysconfdir=/etc + make + + install -d $startdir/pkg/usr/bin + install -d $startdir/pkg/etc + install -d $startdir/pkg/usr/lib + install -d $startdir/pkg/usr/include + + make prefix=$startdir/pkg/usr sysconfdir=$startdir/pkg/etc install + + install -D -m644 ./wminput/README $pkgdir/usr/share/doc/cwiid-svn/wminput + + rm -rf $startdir/src/$_svnmod-build +} diff --git a/abs/extra/community/cwiid-svn/cwiid.install b/abs/extra/community/cwiid-svn/cwiid.install new file mode 100644 index 0000000..6f3dccc --- /dev/null +++ b/abs/extra/community/cwiid-svn/cwiid.install @@ -0,0 +1,16 @@ +# arg 1: the new package version +post_install() { +echo -e "Note:" +echo -e "\033[1;31m==> In order to use wminput you have to load the uinput kernel module:\033[0m" +echo -e "\033[1;31m==> modprobe uinput (as root)\033[0m" +echo -e "\033[1;31m==> and you have to assign correct right acces to /dev/uinput\033[0m" +echo -e "\033[1;31m==> PLEASE READ /usr/share/doc/cwiid-svn/wminput\033[0m" +} + +post_upgrade() { + post_install $1 +} + +op=$1 +shift +$op $* |