summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ccf81ec3153e776e4d46a66789f778442a48cb4 (plain)
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
36
37
38
39
40
41
42
# Maintainer: kylon

_pkgbase=goodix-gpdwin3
pkgname=${_pkgbase}-dkms
pkgver=6.2.1
pkgrel=1
pkgdesc="Patched Goodix touchscreen driver for GPD WIN3"
arch=('any')
license=('GPL2')
depends=('dkms')
source=(
  "goodix.c"
  "goodix.h"
  "goodix_fwupload.c"
  "dkms.conf"
  "Makefile"
  "goodixgpdw3.conf"
)
md5sums=('c0e99fdd6b2778ad43cf7a03a6063cb6'
	 'aec7f644a9a305c4102665137c7f248b'
	 '190deba40c822b9d4f89672bc4e610e9'
     'f514c2a1d6de0f50ea5ebc112447ff7d'
     'aa21936d9b3341c25761f7c4a827f39d'
     '1505740dffca34d8119f3798a0624ebc')

package() {
  cd "$srcdir"
  local install_dir="${pkgdir}"/usr/src/${_pkgbase}-${pkgver}
  install -Dm644 dkms.conf "${install_dir}/dkms.conf"

  # Set name and version
  sed -e "s/@_PKGBASE@/${_pkgbase}/" \
      -e "s/@PKGVER@/${pkgver}/" \
      -i "${install_dir}"/dkms.conf

  install -Dm644 goodix.c "${install_dir}/goodix.c"
  install -Dm644 goodix.h "${install_dir}/goodix.h"
  install -Dm644 goodix_fwupload.c "${install_dir}/goodix_fwupload.c"
  install -Dm644 Makefile "${install_dir}/Makefile"
  install -Dm644 goodixgpdw3.conf "${pkgdir}/etc/modprobe.d/goodixgpdw3.conf"
}