Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 459026

Summary: New ebuild: x11-drivers/psmouse-alps-driver-1.2 - Psmouse kernel module with support for alpsv1-alpsv6 touchpad
Product: Gentoo Linux Reporter: RedEyedMan <kegalym2>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: UNCONFIRMED ---    
Severity: enhancement CC: kegalym2
Priority: Normal Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.dahetral.com/public-download
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: x11-drivers/psmouse-alps-driver-1.2.ebuild
x11-drivers/psmouse-alps-driver-1.2.ebuild
x11-drivers/psmouse-alps-driver-1.2.ebuild

Description RedEyedMan 2013-02-24 16:21:40 UTC
Created attachment 339970 [details]
x11-drivers/psmouse-alps-driver-1.2.ebuild

Psmouse kernel module with support for alpsv1-alpsv6 touchpad

http://www.dahetral.com/


Due to SRC_URI doesn't have direct path to tarbail so I use URLLNK variable with wget 

Ebuild based on  pkgbuild from Arch Linux's AUR: 
https://aur.archlinux.org/packages/psmouse-alps-driver/
Comment 1 RedEyedMan 2013-02-24 16:27:09 UTC
Created attachment 339972 [details]
x11-drivers/psmouse-alps-driver-1.2.ebuild

Ebuild cleaned from unrelated stuff
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-24 20:10:56 UTC
> URLLNK="wget -O ${DISTDIR}/psmouse-alps-dst-${PV}.tbz http://www.dahetral.com/public-download/psmouse-alps-dst-${PV}.tbz/at_download/file"

It is strictly forbidden to list / run commands in the global scope because that breaks the metadata cache. You can just do SRC_URI="http://www.dahetral.com/public-download/psmouse-alps-dst-${PV}.tbz/at_download/file -> psmouse-alps-dst-${PV}.tbz"

> DEPEND="net-misc/wget"

As a result, you can remove this.

> _K30=`uname -r | grep 3.0 || true`
> _K37=`uname -r | grep 3.7 || true`

You can use the linux-info class for this, uname does not respect the selected kernel and the selected kernel is not always the running kernel.

> sed -e ...

Please add `|| die "sed failed"` to the end of such calls to guard them against failures.

> mkdir -p ${S}/usr/src/dkms/src
> cp -RL ${S}/usr/src/psmouse-alps-dst-${PV}/src/* ${S}/usr/src/dkms/src
> cp -RL ${S}/usr/src/psmouse-alps-dst-${PV}/dkms.conf ${S}/usr/src/dkms

There are install functions for this purpose which die on their own when they don't work, see http://devmanual.gentoo.org/function-reference/install-functions for a list of them.
Comment 3 RedEyedMan 2013-02-25 22:37:29 UTC
Created attachment 340118 [details]
x11-drivers/psmouse-alps-driver-1.2.ebuild

Fixed ebuild.

Maybe someone else can test it, because I have not laptop with alps touchpad.