public
anonymous / PKGBUILD.c
Created

PKGBUILD

  • Download Gist
PKGBUILD.c
C
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
# Maintainer: Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>
# Contributor: Paolo Stivanin <admin@polslinux.it>
# Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>
 
pkgname=('psmouse-alps')
_kernelname=${pkgname#linux}
_basekernel=3.5
_patchver=${_basekernel}.4
pkgver=0.11
pkgrel=${_patchver}
pkgdesc="psmouse kernel module with support for alpsv5 touchpad"
arch=('i686' 'x86_64')
url="http://www.kernel.org/"
license=('GPL2')
makedepends=('linux-headers')
options=('!strip')
install=psmouse.install
source=(
http://www.kernel.org/pub/linux/kernel/v3.x/linux-${_patchver}.tar.bz2
https://github.com/bgamari/linux/commit/1527416a726b823225f97c4d733dcdd9df7f50d6.patch
)
 
md5sums=(
'95d5c7271ad448bc965bdb29339b6923'
'feca68ada9552815a385854f8131656f'
)
 
build() {
cd ${srcdir}/linux-${_basekernel}
patch -p1 -i ${srcdir}/1527416a726b823225f97c4d733dcdd9df7f50d6.patch
cd ${srcdir}/linux-${_basekernel}/drivers/input/mouse
make -C /usr/src/linux-`uname -r`/ M=`pwd` psmouse.ko
gzip -9 psmouse.ko
install -D -m 0644 psmouse.ko.gz ${pkgdir}/lib/modules/`uname -r`/updates/drivers/input/mouse/psmouse.ko.gz
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.