Package Details: keypunch-git 1:6.2.r8.g77f9956-1

Git Clone URL: https://aur.archlinux.org/keypunch-git.git (read-only, click to copy)
Package Base: keypunch-git
Description: Practice your typing skills
Upstream URL: https://github.com/bragefuglseth/keypunch
Keywords: gtk4 libadwaita rust typing
Licenses: GPL-3.0-or-later
Conflicts: keypunch
Provides: keypunch
Submitter: Giteeajake
Maintainer: Giteeajake (Integral, lilac)
Last Packager: lilac
Votes: 3
Popularity: 1.23
First Submitted: 2025-03-20 01:57 (UTC)
Last Updated: 2025-05-19 15:22 (UTC)

Latest Comments

1 2 3 Next › Last »

Giteeajake commented on 2025-05-27 00:33 (UTC)

@siliconmeadow

Giteeajake commented on 2025-05-26 10:56 (UTC)

I'm sorry I only saw it today

Giteeajake commented on 2025-05-26 10:55 (UTC)

I'm sorry, but because the upstream master doesn't have version synchronization, and in order to ensure that the latest code is used, the upstream master is selected, and my package has been merged into archlinuxcn/repo, so lilac will be updated automatically

siliconmeadow commented on 2025-05-25 13:46 (UTC)

Why are we not using the latest tagged version - 6.3? And why are we not doing checksums to validate what is being downloaded? This seems a prime candidate for a keylogging hack!

Giteeajake commented on 2025-05-20 22:26 (UTC)

sorry I feel a little tired

BlackCherry commented on 2025-05-19 14:24 (UTC)

the pkgver in the build of the PKGBUILD isn't necessary because the name's folder is only keypunch

/home/cherry/.cache/paru/clone/keypunch-git/PKGBUILD: line 30: cd: /home/cherry/.cache/paru/clone/keypunch-git/src/keypunch-6.3: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'keypunch-git-6.3-2':
error: packages failed to build: keypunch-git-6.3-2

Giteeajake commented on 2025-05-18 05:08 (UTC)

this is very bad :(

Giteeajake commented on 2025-05-18 04:51 (UTC)

thanks siliconmeadow

siliconmeadow commented on 2025-05-17 16:45 (UTC) (edited on 2025-05-17 17:03 (UTC) by siliconmeadow)

The latest version doesn't install the latest version and simply keeps reinstalling the tip of the branch where the 6.2 starts (currently 6.2.r8.g77f9956-1). Here is a patch to download a tarball of the v6.3 source and also validates the checksum:

diff --git a/.SRCINFO b/.SRCINFO
index b54f0dc..84b0424 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -17,7 +17,7 @@ pkgbase = keypunch-git
    depends = libadwaita
    provides = keypunch
    conflicts = keypunch
-   source = git+https://github.com/bragefuglseth/keypunch.git
-   sha256sums = SKIP
+   source = https://github.com/bragefuglseth/keypunch/archive/refs/tags/v6.3.tar.gz
+   sha256sums = 63edd187becde410750779d053252897bc1ce31d03fd8dd682b6aac85f55e0e22ca9cbf1fb75518036f36cadd64fe73a7b7001a7ec99703b5840cae14423fad7

 pkgname = keypunch-git
diff --git a/PKGBUILD b/PKGBUILD
index 5d1573e..a8d1070 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,26 +14,21 @@ url='https://github.com/bragefuglseth/keypunch'
 _app_website='https://apps.gnome.org/Keypunch'
 arch=('aarch64' 'x86_64')
 license=('GPL-3.0-or-later')
-source=("git+$url.git")
-sha256sums=('SKIP')
+source=("https://github.com/bragefuglseth/keypunch/archive/refs/tags/v${pkgver}.tar.gz")
+sha512sums=('63edd187becde410750779d053252897bc1ce31d03fd8dd682b6aac85f55e0e22ca9cbf1fb75518036f36cadd64fe73a7b7001a7ec99703b5840cae14423fad7')
 provides=('keypunch')
 conflicts=('keypunch')
 depends=('gtk4' 'libadwaita')
 makedepends=('blueprint-compiler' 'gettext' 'git' 'meson' 'ninja' 'pkgconf' 'rust')

-pkgver() {
-   cd "${srcdir}/${_appname}"
-   git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
 build() {
-    cd "${srcdir}/${_appname}"
+    cd "${srcdir}/${_appname}-${pkgver}"
     export RUSTUP_TOOLCHAIN=stable
     meson setup -Dprefix=/usr build
     meson compile -C build
 }

 package() {
-    cd "${srcdir}/${_appname}"
+    cd "${srcdir}/${_appname}-${pkgver}"
     meson install -C build --destdir "$pkgdir"
 }

Smoerrebroed commented on 2025-03-29 14:04 (UTC)

Yes, that's better! :-) Many thanks again.