42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Maintainer: slonkazoid <slonkazoid@slonk.ing>
|
|
# Based on the work of kernelginar
|
|
# https://github.com/kernelginar/lure-repo/blob/main/eta-touchdrv-git/lure.sh
|
|
|
|
pkgname="eta-touchdrv"
|
|
pkgver="0.2.0"
|
|
pkgrel=1
|
|
pkgdesc="Touchscreen driver for Vestel 14MB24A (IRTOUCH)"
|
|
arch=("x86_64")
|
|
homepage="https://github.com/kernelginar/eta-touchdrv"
|
|
license=("custom")
|
|
depends=(
|
|
"dkms"
|
|
"usbutils"
|
|
"systemd"
|
|
)
|
|
|
|
_commit_hash='a0e54d8018cbf436e761ebf71fe5b21fe78a3af5'
|
|
source=(
|
|
"https://github.com/kernelginar/eta-touchdrv/archive/${_commit_hash}.tar.gz"
|
|
"0001-patch-for-6.x.patch"
|
|
)
|
|
b2sums=(
|
|
'a9622821060e50c7bd62ac5ccff025150da261fdf6e3da7066759309e06db266181b64a8d5768226e3de0d9bbe52738d671379aa1d241608f5a7f72e9061cb03'
|
|
'5ddfb66dac47b818039e40468f8d8634576ee49f8842d38ef7a046e0d1f57d799ea76da08428dbae69ced720a49419cc417afee1e4fd39aefd9c65dff0fdc16b'
|
|
)
|
|
|
|
prepare() {
|
|
mv "${pkgname}-${_commit_hash}" "${pkgname}-${pkgver}"
|
|
cd "${pkgname}-${pkgver}"
|
|
patch --forward --strip=1 --input=../0001-patch-for-6.x.patch
|
|
}
|
|
|
|
package() {
|
|
install -d "${pkgdir}/usr"
|
|
cp -rT "${srcdir}/${pkgname}-${pkgver}/usr" "${pkgdir}/usr"
|
|
}
|
|
|
|
post_install() {
|
|
echo "You must enable the eta-touchdrv and touchdrv-start services."
|
|
echo "# systemctl enable --now eta-touchdrv touchdrv-start"
|
|
}
|