How to get update a file not maintained in Aur repository?

I’ve got a Huion graphics tablet with outdated tablet software from the AUR repository.
The file is : Huion 15.0.0.121 outdated 2023-07-19. On Huion’s website is a ‘New’ updated file V 15.0.0.162 for deb/ubuntu dated 2024-07-05. How do I bring this to anyones attention for a possible change in the repository? I’d like to get the newest software if improvement have been made. Any idea’s?

Rich;)

On the AUR website for the package, there’s a button named Flag package out-of-date on the right.

1 Like

Seems huiontablet v15.0.0.121.202301131103-1 has been outdated for a year.

EDIT: If it’s no longer being maintained, maybe register for an AUR account and comment on the AUR package.

1 Like

Not sure if this will work but you might find it worth a try?

Create a directory, let’s call it build under your Downloads directory.

Download the PKGBUILD file from the AUR page into that directory.

Edit this line:

pkgver=v15.0.0.121.202301131103

to match the version of the latest release.

Then in the same directory, open a terminal and run:

makepkg -s

See if it will build the package.

1 Like

It might be worth looking at the OpenTabletDriver. It is a driver a lot of people in the osu! community use since it is open source and low latency. I don’t know if it supports your tablet, nor how to install it and fix it and whatnot, as I don’t have a tablet, however, but I thought it might be good to share it.

I placed a comment in the Arch file section under Huion asking for an update.

Rich;)

1 Like

It’s not everyone’s cup of tea, but modifying an existing AUR package locally, can be a good way to learn how to contribute to the AUR. You also then, don’t need to feel restricted by what is and isn’t in the AUR, because you can possibly address that yourself.

1 Like

I did attempt to see what I can do. I took pebcak’s advice (his response to my post) and downloaded the pkgbuild which had the code written by the maintainer of the program in AUR. I changed the pkgver to match the latest version and ran makepkg -s but ran into problems. I’m not an accomplished programmer using vim or kate and when it comes to failed execution that’s where I get lost easily. I had also extracted the files from the debian file into the actual program files that were packed into the deb file. (thinking this might help.) All of this was done in my Download folder in my home directory so I could hopefully see what I was doing. I’m not an accomplished programmer by any means but sometimes I can try doing some of the leg work to see if it might work.

Rich;)

The structure of the .deb, and install method file has changed quite significantly, so unfortunately a simple version and hash update doesn’t work (as you’ve discovered). The URL also changed a bit too.

I’ve modified the PKGBUILD quite a bit, and it now looks to make an installable package, but beyond that step I’ve not tested.

# Maintainer: Wai <waicool20@gmail.com>
pkgname=huiontablet
pkgver=v15.0.0.162
pkgrel=1
pkgdesc="Official Huion tablet drivers"
arch=('x86_64')
url="https://www.huion.com/download/"
license=('unknown')
source=("https://driverdl.huion.com/driver/Linux/HuionTablet_LinuxDriver_$pkgver.$arch.deb")
sha256sums=("153b9b06465460bea4a0aa90545023001bf35cb92bbf955c8162f4f4ed173010")
options=(!debug)

package() {
  cd "${srcdir}"

  # Extract to the $pkgdir.
  tar xJf data.tar.xz -C "${pkgdir}/"

  # Remove problem files with non-UTF-8 filenames
  cd ${pkgdir}/usr/lib/huiontablet/res/DevImg/HUION_M184/
  ls *.png | grep -Ev 'HKey|Touch|HUI' | xargs rm
}

To just make the package:

makepkg -s

To make, install and remove any build dependencies after install:

makepkg -sri
1 Like

[richardc@richard-minipcpn50 HuionTablet_LinuxDriver_v15.0.0.162.x86_64]$ makepkg -s
==> ERROR: A package has already been built. (use -f to overwrite)
[richardc@richard-minipcpn50 HuionTablet_LinuxDriver_v15.0.0.162.x86_64]$ makepkg -f
==> Making package: huiontablet v15.0.0.162-1 (Sun 14 Jul 2024 08:53:47 AM MDT)
==> Checking runtime dependencies…
==> Checking buildtime dependencies…
==> Retrieving sources…
→ Downloading HuionTablet_LinuxDriver_v15.0.0.162.x86_64.deb…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 30.9M 100 30.9M 0 0 2743k 0 0:00:11 0:00:11 --:–:-- 2935k
==> Validating source files with sha256sums…
HuionTablet_LinuxDriver_v15.0.0.162.x86_64.deb … Passed
==> Extracting sources…
→ Extracting HuionTablet_LinuxDriver_v15.0.0.162.x86_64.deb with bsdtar
==> Entering fakeroot environment…
==> Starting package()…
==> Tidying install…
→ Removing libtool files…
→ Purging unwanted files…
→ Removing static library files…
→ Stripping unneeded symbols from binaries and libraries…
→ Compressing man and info pages…
==> Checking for packaging issues…
==> Creating package “huiontablet”…
→ Generating .PKGINFO file…
→ Generating .BUILDINFO file…
→ Generating .MTREE file…
→ Compressing package…

Looked like it was going to work but the program is stuck at compressing package indefinitely. . . . don’t know what’s going on here. . . . good attempt on your part for this endeavor. My drive is sitting there doing something as the light is going on and off like it’s working to compress the package. . . . I guess I can wait 10 minutes and see what’s happening. . . .

Rich;)

: Can’t translate pathname ‘usr/lib/huiontablet/res/DevImg/HUION_M184/按键1.png’ to UTF-8: Can’t translate pathname ‘usr/lib/huiontablet/res/DevImg/HUION_M184/按键2-3.png’ to UTF-8: Can’t translate pathname ‘usr/lib/huiontablet/res/DevImg/HUION_M184/按键5.png’ to UTF-8

This was the last line from the compressed code of the pkg v 15. 0.0.121 that works and is the pkg in the AUR repository that works on my computer. Maybe this is what is causing the lockup in compressing the finalized file before completion.

Rich;)

I encountered the same thing @rich52, it’s why I included the section to “# Remove problem files with non-UTF-8 filenames”. It would seem those commands didn’t work on your end though.

In any case, the resulting package it created should still be ok, it does move past those errors.

This customised PKGBUILD is only a possible interim solution until the package maintainer updates things.

Before running makepkg, to reduce possible errors, you might also clear that directory of everything (including the pkg and src subdirectories) except:

  • PKGBUILD
  • and perhaps HuionTablet_LinuxDriver_v15.0.0.162.x86_64.deb (save you having re-download it)