Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 459026 - New ebuild: x11-drivers/psmouse-alps-driver-1.2 - Psmouse kernel module with support for alpsv1-alpsv6 touchpad
Summary: New ebuild: x11-drivers/psmouse-alps-driver-1.2 - Psmouse kernel module with ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.dahetral.com/public-download
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2013-02-24 16:21 UTC by RedEyedMan
Modified: 2013-02-25 22:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
x11-drivers/psmouse-alps-driver-1.2.ebuild (psmouse-alps-driver-1.2.ebuild,1.90 KB, text/plain)
2013-02-24 16:21 UTC, RedEyedMan
Details
x11-drivers/psmouse-alps-driver-1.2.ebuild (psmouse-alps-driver-1.2.ebuild,1.84 KB, text/plain)
2013-02-24 16:27 UTC, RedEyedMan
Details
x11-drivers/psmouse-alps-driver-1.2.ebuild (psmouse-alps-driver-1.2.ebuild,1.78 KB, text/plain)
2013-02-25 22:37 UTC, RedEyedMan
Details

Note You need to log in before you can comment on or make changes to this bug.
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.