Package Details: xp-pen-tablet 3.4.9-231023

Git Clone URL: https://aur.archlinux.org/xp-pen-tablet.git (read-only, click to copy)
Package Base: xp-pen-tablet
Description: XP-Pen (Official) Linux utility (New UI driver)
Upstream URL: https://www.xp-pen.com/download/index.html
Keywords: driver pen tablet xp xp-pen
Licenses: custom
Submitter: Poilrouge
Maintainer: labaman
Last Packager: labaman
Votes: 29
Popularity: 0.44
First Submitted: 2020-06-12 15:35 (UTC)
Last Updated: 2024-03-17 10:27 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

labaman commented on 2023-04-20 17:17 (UTC)

@FabioLolix Thanks for the recommendations, maybe I will apply some of them in the next updates of the package.

@afaikiac I still try to stick to the concept of being as close to the original package as possible. In particular, I chose the deb package as a source, since its scripts are easier to adapt to a future arch package than to write them from scratch for the portable/universal version. And, as a consequence, it is easier to keep track of changes in these scripts when the package is updated. If you want to maintain some modified version as a separate package, there is no problem.

FabioLolix commented on 2023-04-20 16:22 (UTC) (edited on 2023-07-26 16:16 (UTC) by FabioLolix)

edited since this was originally made on pentablet duplicate pkgbuild

FabioLolix commented on 2023-04-20 16:20 (UTC)

My take on part the pkgbuild

  • epoch=0 is not needed, please remove
  • ar x *.debis not needed, a first round of decompression is already done automatically with bsdtar
  • license is not LGPL3 but unknown, LGPL3 is for the qt5 part, xp-pen don't specify any license seems (this was mentioned in the past I think)
  • for source=() please don't use ${arch} but use source_x86_64=() instead
  • downloaded source in unversioned so you can use sha512sums_x86_64=('SKIP') and rename the archive to be unique
  • pkgver= can be extracted from the archive
pkgname=xp-pen-tablet
pkgver=3.2.3.230215
pkgrel=1
pkgdesc="XP-Pen official Linux utility"
arch=(x86_64)
url='https://www.xp-pen.com/download/index.html'
license=('custom:unkown')
install=${pkgname}.install
source_x86_64=("${pkgname}-$(date +%F-%H).amd64.deb::https://www.xp-pen.ru/download/file/id/1954/pid/143/ext/deb.html")
sha512sums_x86_64=('SKIP')

pkgver() {
  bsdtar -xf control.tar.gz -C .
  actpkgverlong="$(cat "control" | grep "Version:")"
  actpkgver=${actpkgverlong##*:}
  echo "$actpkgver"
}

I'm sure the pkgver() after bsdtar can be made in one line but haven't for that now

afaikiac commented on 2023-04-20 15:51 (UTC) (edited on 2023-04-20 15:56 (UTC) by afaikiac)

@FabioLolix @labaman I think the proper version of the PKGBUILD would look like this. Additionally, I have changed the package name. If a user wants to change the default configuration, they can back it up using the app and make changes under root.

pkgname=xp-pen-pentablet
pkgver=3.2.3.230215
pkgrel=1
arch=('x86_64')
pkgdesc="XP-Pen official Linux utility for graphic tablets"
url='https://www.xp-pen.com/download/index.html'
license=('LGPL3')
source=("XPPen-pentablet-${pkgver}-${pkgrel}.${arch}.tar.gz::https://www.xp-pen.com/download/file/id/1936/pid/440/ext/gz.html")
sha256sums=('e890d55c1d12a68647439ce7270e1e4c004d3ff0b901ec5a717145bd4a037722')

package() {
    cd "${srcdir}/${pkgname}-${pkgver}-${pkgrel}.${arch}"

    install -Dm644 App/usr/share/icons/pentablet.png \
        "${pkgdir}/usr/share/pixmaps/pentablet.png"
    install -Dm644 App/usr/share/applications/xppentablet.desktop \
        "${pkgdir}/usr/share/applications/xppentablet.desktop"
    install -Dm644 App/etc/xdg/autostart/xppentablet.desktop \
        "${pkgdir}/etc/xdg/autostart/xppentablet.desktop"
    install -Dm644 App/lib/udev/rules.d/10-xp-pen.rules \
        "${pkgdir}/usr/lib/udev/rules.d/10-xp-pen.rules"
    install -dm755 "${pkgdir}/usr/lib/pentablet/conf/xppen"
    install -Dm644 App/usr/lib/pentablet/conf/xppen/* \
        "${pkgdir}/usr/lib/pentablet/conf/xppen/"
    install -dm755 "${pkgdir}/usr/lib/pentablet/lib"
    install -Dm755 App/usr/lib/pentablet/lib/* \
        "${pkgdir}/usr/lib/pentablet/lib/"
    install -dm755 "${pkgdir}/usr/lib/pentablet/platforms"
    install -Dm644 App/usr/lib/pentablet/platforms/* \
        "${pkgdir}/usr/lib/pentablet/platforms/"
    install -Dm644 App/usr/lib/pentablet/LGPL \
        "${pkgdir}/usr/lib/pentablet/LGPL"
    install -Dm755 \
        App/usr/lib/pentablet/pentablet \
        App/usr/lib/pentablet/pentablet.sh \
        App/usr/lib/pentablet/resource.rcc \
        "${pkgdir}/usr/lib/pentablet/"
    # Minimize GUI on autostartup
    sed -Ei 's#(^Exec=.+)#\1 /mini#' "${pkgdir}/etc/xdg/autostart/xppentablet.desktop"
    # Change icon path
    sed -Ei 's#(^Icon=).+#\1/usr/share/pixmaps/pentablet.png#' \
        "${pkgdir}/usr/share/applications/xppentablet.desktop" \
        "${pkgdir}/etc/xdg/autostart/xppentablet.desktop"
}

FabioLolix commented on 2023-04-20 07:29 (UTC)

@afaikiac even if there are issues is not welcome to upload duplicate pkgbuilds on the AUR. If you want to help host a revisioned pkgbuild on any git forge you like, send a patch to the pkgbuild maintainer and/or link your stuff in the comments. Please delete pentablet

labaman commented on 2023-04-20 06:51 (UTC) (edited on 2023-04-20 06:52 (UTC) by labaman)

Oh, just noticed that the developer rolled back the version of the package on the official site. That's why there was a problem with chechsum. If you look at the version history of this package, 3.2.3.230215 is the previous version of the package and 2023-03-07 the package was marked as obsolete and updated to 3.3.9.230222 (XPPenLinux-3.3.9.230222-1.x86_64.deb) Now the latest version on the site is again 3.2.3.230215.

In that case I will need to correct the versions here too.

As for the scripts inside the package - the only difference from the official package is that the application starts in minimized form, but otherwise it is an exact copy of the pre- and post- install scripts of the official package, including the assignment of permissions to some files.

afaikiac commented on 2023-04-20 01:08 (UTC) (edited on 2023-04-20 01:11 (UTC) by afaikiac)

Hi! I created a new package https://aur.archlinux.org/packages/pentablet with the correct source, version number and the right files permissions. If you are interested, I would be happy to merge it.

OdinVex commented on 2023-04-18 21:22 (UTC)

If you could use www.xp-pen.com instead of www.xp-pen.ru, that'd be neutral and best.

labaman commented on 2023-04-17 20:08 (UTC)

The checksums have been corrected. I apologize for the delay.

bazinevis commented on 2023-03-24 22:40 (UTC) (edited on 2023-03-24 22:40 (UTC) by bazinevis)

please update the checksum.