Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LangeSebastian/24ed646f8105f0cd49619cf2944fedda to your computer and use it in GitHub Desktop.
Save LangeSebastian/24ed646f8105f0cd49619cf2944fedda to your computer and use it in GitHub Desktop.
Patch for xf86-input-egalax on AUR to build for armv7h (Raspberry Pi 2)
From 4abaf557c620ee7758d03a6f061704fbab1c6c56 Mon Sep 17 00:00:00 2001
From: Sebastian Lange <archlinux@serial-experiments.de>
Date: Thu, 23 Mar 2017 21:54:30 +0000
Subject: [PATCH] Added build instructions for armv7h (RPi2)
---
PKGBUILD | 40 +++++++++++++++++++++++++---------------
1 file changed, 25 insertions(+), 15 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
index 2ff51ff..da749cf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,30 +7,37 @@ pkgrel=2
_reldate=20151022
pkgdesc="Touchscreen driver for eGalax (eeti) devices"
arch=('i686'
- 'x86_64')
+ 'x86_64'
+ 'armv7h')
url="http://home.eeti.com.tw/drivers_Linux.html"
license=('custom:EULA')
groups=('xorg-input-drivers')
depends=('linux'
'libpng12'
'gksu'
- 'alsa-lib'
+ 'alsa-lib'
'hicolor-icon-theme')
optdepends=('xorg-server')
backup=(etc/eGTouchL.ini)
install='xf86-input-egalax.install'
-#http://home.eeti.com.tw/touch_driver/Linux/20141009/eGTouch_v2.5.4330.L-x.zip
-source=("eGTouch_v${pkgver}.L-x.tar.gz::http://home.eeti.com.tw/touch_driver/Linux/${_reldate}/eGTouch_v${pkgver}.L-x.tar.gz"
- "eGalaxConfig.desktop"
+
+source_armv7h=("eGTouch_v${pkgver}.L-ma.tar.gz::http://home.eeti.com.tw/touch_driver/Linux/${_reldate}/eGTouch_v${pkgver}.L-ma.tar.gz")
+source_i686=("eGTouch_v${pkgver}.L-x.tar.gz::http://home.eeti.com.tw/touch_driver/Linux/${_reldate}/eGTouch_v${pkgver}.L-x.tar.gz")
+source_x86_64=("eGTouch_v${pkgver}.L-x.tar.gz::http://home.eeti.com.tw/touch_driver/Linux/${_reldate}/eGTouch_v${pkgver}.L-x.tar.gz")
+source=("eGalaxConfig.desktop"
"eGTouchD.service"
"eGTouchD.conf")
-md5sums=('fb29252cd9ebf3a4ebd1530e4946f092'
- '0ee99c83fd74bdb8357427eae9b2dc7d'
+md5sums_armv7h=('4d53599a89dd7653d6587279cef5a25c')
+md5sums_i686=('fb29252cd9ebf3a4ebd1530e4946f092');
+md5sums_x_86_64=('fb29252cd9ebf3a4ebd1530e4946f092');
+md5sums=('0ee99c83fd74bdb8357427eae9b2dc7d'
'a52c4c1682ee196a6bbffe4768154a92'
'c9284fbcf2bdaec8d3eea21f6b7be34d')
-
+
_architect="32"
+_archshort="L-x"
[ "$CARCH" = "x86_64" ] && _architect="64"
+[ "$CARCH" = "armv7h" ] && _architect="ARMhf" && _archshort="L-ma"
package() {
if [ -d /etc/modules-load.d ]; then
@@ -49,26 +56,29 @@ package() {
"$pkgdir/usr/share/licenses/$pkgname" \
"$pkgdir/usr/bin" || return 1
- cd $srcdir/eGTouch_v${pkgver}.L-x/eGTouch${_architect}/eGTouch${_architect}withX
+ cd $srcdir/eGTouch_v${pkgver}.${_archshort}/eGTouch${_architect}/eGTouch${_architect}withX
- install -D -m755 eGTouchU $pkgdir/usr/bin
+ if [ "$CARCH" != "armv7h" ]; then
+ install -D -m755 eGTouchU $pkgdir/usr/bin
+ fi
install -D -m755 eGTouchD $pkgdir/usr/bin
install -D -m755 eCalib $pkgdir/usr/bin
install -D -m755 eGTouchL.ini $pkgdir/etc
- cd $srcdir/eGTouch_v${pkgver}.L-x/Rule
+ cd $srcdir/eGTouch_v${pkgver}.${_archshort}/Rule
+ if [ "$CARCH" != "armv7h" ]; then
+ install -D -m644 eGTouchU.png $pkgdir/usr/share/icons/hicolor/scalable/apps
+ fi
install -D -m644 52-egalax-virtual.conf $pkgdir/etc/X11/xorg.conf.d
- install -D -m644 eGTouchU.png $pkgdir/usr/share/icons/hicolor/scalable/apps
-
install -D -m755 serio_raw.sh $pkgdir/usr/share/eGTouch/sample
- cd $srcdir/eGTouch_v${pkgver}.L-x
+ cd $srcdir/eGTouch_v${pkgver}.${_archshort}
install -D -m644 EULA.pdf $pkgdir/usr/share/licenses/$pkgname
install -D -m644 "EETI_Declaration_and_Disclaimer.pdf" $pkgdir/usr/share/licenses/$pkgname
- cd $srcdir/eGTouch_v${pkgver}.L-x/Guide
+ cd $srcdir/eGTouch_v${pkgver}.${_archshort}/Guide
# install -D -m644 "EETI_eGTouch_Utility_Guide_for Linux_v1.03.pdf" $pkgdir/usr/share/eGTouch
# install -D -m644 "EETI_eGTouch_Linux_Programming_Guide_v2.5h.pdf" $pkgdir/usr/share/eGTouch
--
2.12.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment