You download a precompiled binary.
So you must rename your package to xp-pen-tablet-bin
(i.e. with the -bin
suffix), and add provides=("xp-pen-tablet=${pkgver}")
, conflicts=("xp-pen-tablet")
.
Thanks for maintaining!
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: | 33 |
Popularity: | 1.55 |
First Submitted: | 2020-06-12 15:35 (UTC) |
Last Updated: | 2025-03-11 10:21 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »
You download a precompiled binary.
So you must rename your package to xp-pen-tablet-bin
(i.e. with the -bin
suffix), and add provides=("xp-pen-tablet=${pkgver}")
, conflicts=("xp-pen-tablet")
.
Thanks for maintaining!
@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.
edited since this was originally made on pentablet duplicate pkgbuild
My take on part the pkgbuild
epoch=0
is not needed, please removear x *.deb
is not needed, a first round of decompression is already done automatically with bsdtarpkgname=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
@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"
}
@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
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.
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.
If you could use www.xp-pen.com instead of www.xp-pen.ru, that'd be neutral and best.
The checksums have been corrected. I apologize for the delay.
Pinned Comments
labaman commented on 2024-06-11 16:49 (UTC) (edited on 2024-06-11 16:56 (UTC) by labaman)
This is the driver for the new current models of XP-PEN graphics tablets, if you have a legacy model, use this package