From 00b137103b10f9cbde4ad3a27da3e86320e20476 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Fri, 18 Jul 2025 10:12:43 -0400
Subject: ckbcomp: update to 1.239

---
 linhes/ckbcomp/PKGBUILD | 48 +++++++++++++++++-------------------------------
 1 file changed, 17 insertions(+), 31 deletions(-)
 mode change 100755 => 100644 linhes/ckbcomp/PKGBUILD

diff --git a/linhes/ckbcomp/PKGBUILD b/linhes/ckbcomp/PKGBUILD
old mode 100755
new mode 100644
index 2e5b991..6133036
--- a/linhes/ckbcomp/PKGBUILD
+++ b/linhes/ckbcomp/PKGBUILD
@@ -1,39 +1,25 @@
-# Maintainer: Nissar Chababy <funilrys at outlook dot com>
-# Ex-Maintainer: 	Jeroen Bollen <jbinero at gmail dot comau>
+# Maintainer:
+# Contributor: Nissar Chababy <funilrys at outlook dot com>
+# Contributor: Jeroen Bollen <jbinero at gmail dot comau>
 
-pkgname=ckbcomp
-pkgver=1.234
+_pkgname="ckbcomp"
+pkgname="$_pkgname"
+pkgver=1.239
 pkgrel=1
 pkgdesc="Compile a XKB keyboard description to a keymap suitable for loadkeys or kbdcontrol"
-arch=(any)
-url="http://anonscm.debian.org/cgit/d-i/console-setup.git/"
-license=('GPL2')
-depends=('perl')
-source=("http://ftp.debian.org/debian/pool/main/c/console-setup/console-setup_${pkgver}.tar.xz")
-sha512sums=('902da702a02b5b088d2f0838611d6ca90ff164237c74755071bc456a13e6cf542d72cf0ebd2704c265b509cd9479a2216a366dabfdb832ebecc79970eadf67d6')
-conflicts=(ckbcomp-bin)
+url="https://salsa.debian.org/installer-team/console-setup"
+license=('GPL-2.0-or-later')
+arch=('any')
 
-package() {
-    if [[ -d "${srcdir}/console-setup" ]]
-    then
-        cd console-setup
-    elif [[ -d "${srcdir}/console-setup-${pkgver}" ]]
-    then 
-        cd console-setup-${pkgver} 
-    elif [[ -d "${srcdir}/work" ]]
-    then
-        cd work
-    else
-	echo "Source directory not found.".
-	exit 1
-    fi
+makedepends=('git')
 
+_pkgsrc="console-setup"
+source=("$_pkgsrc"::"git+$url.git#commit=$pkgver")
+sha256sums=('eaa3804a3f3cc0bb826b6f457fd16988f2c914d047437245d7dbef5c87513f8e')
 
-    if [[ ${?} != 0 ]]
-    then
-        cd console-setup-${pkgver}
-    fi
+package() {
+  depends+=('perl')
 
-    install -d ${pkgdir}/usr/bin/
-    install -m755 Keyboard/ckbcomp ${pkgdir}/usr/bin/
+  cd "$_pkgsrc"
+  install -Dm755 Keyboard/ckbcomp -t "$pkgdir/usr/bin/"
 }
-- 
cgit v0.12

