diff options
author | Achmad Fathoni | 2021-07-08 20:57:19 +0700 |
---|---|---|
committer | Achmad Fathoni | 2021-07-08 20:57:19 +0700 |
commit | 1278c6e5afd499e0f3b0379db34d789b14faab3f (patch) | |
tree | 211182ed5de0b9f4789d1af668ecd3558692eccf | |
download | aur-1278c6e5afd499e0f3b0379db34d789b14faab3f.tar.gz |
init
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rw-r--r-- | dkms.conf | 6 | ||||
-rw-r--r-- | veikk.conf | 2 |
4 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d8ba6442495e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = input-veikk-dkms-git + pkgdesc = Linux driver providing pressure sensitivity for VEIKK drawing tablets (S640, A50, A30) + pkgver = r78.bb938f0 + pkgrel = 1 + url = https://github.com/jlam55555/veikk-s640-driver + arch = i686 + arch = x86_64 + license = GPL + depends = dkms + depends = git + optdepends = input-veikk-config + source = input-veikk::git+https://github.com/jlam55555/veikk-s640-driver.git + source = veikk.conf + source = dkms.conf + sha1sums = SKIP + sha1sums = 58ea5a020380c922d62b43c6403b4310a18967b4 + sha1sums = 35423db037910181d6fcada916180b09c28ff8ad + +pkgname = input-veikk-dkms-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2ca73b088ea7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +pkgname=input-veikk-dkms-git +_pkgname=input-veikk +pkgver=r78.bb938f0 +pkgrel=1 +pkgdesc="Linux driver providing pressure sensitivity for VEIKK drawing tablets (S640, A50, A30)" +arch=('i686' 'x86_64') +url="https://github.com/jlam55555/veikk-s640-driver" +license=('GPL') +depends=('dkms' 'git') +optdepends=('input-veikk-config') +source=(${_pkgname}::git+${url}.git + 'veikk.conf' + 'dkms.conf') +sha1sums=('SKIP' + '58ea5a020380c922d62b43c6403b4310a18967b4' + '35423db037910181d6fcada916180b09c28ff8ad') + +pkgver() { + cd "${srcdir}/${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + # Installation directory + local install_dir="${pkgdir}/usr/src/${_pkgname}-${pkgver}" + + cd "${srcdir}/${_pkgname}" + + sed -i "s/@MODULE_VERSION@/${pkgver}/" "${srcdir}/dkms.conf" + sed -i "s/@MODULE_VERSION@/${pkgver}/" "${srcdir}/dkms.conf" + install -D -m644 -t "${install_dir}/" "${srcdir}/dkms.conf" + + # Install source files + for file in {Makefile,*.c,*.h}; do + [ -f "$file" ] || continue + install -D -m644 -t "${install_dir}/" "${file}" + done + # Load the module at boot + install -Dm644 ${srcdir}/veikk.conf ${pkgdir}/etc/modules-load.d/veikk.conf +} diff --git a/dkms.conf b/dkms.conf new file mode 100644 index 000000000000..8748a270fb5c --- /dev/null +++ b/dkms.conf @@ -0,0 +1,6 @@ +PACKAGE_NAME="input-veikk" +BUILT_MODULE_NAME[0]="veikk" +PACKAGE_VERSION="@PKGVER@" +MODULE_VERSION="@PKGVER@" +DEST_MODULE_LOCATION[0]="/extra/" +AUTOINSTALL="yes" diff --git a/veikk.conf b/veikk.conf new file mode 100644 index 000000000000..f4374c6a5f05 --- /dev/null +++ b/veikk.conf @@ -0,0 +1,2 @@ +# Load the veikk driver module +veikk |