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/
Created attachment 339972 [details] x11-drivers/psmouse-alps-driver-1.2.ebuild Ebuild cleaned from unrelated stuff
> 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.
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.