Name xorg-xkbcomp
Description X Keyboard description compiler
Version 1.5.0-1
Package Base xorg-xkbcomp
Homepage https://gitlab.freedesktop.org/xorg/app/xkbcomp
Maintainers ['Andreas Radke <andyrtr@archlinux.org>']
Contributors ['Jan de Groot <jgc@archlinux.org>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/xorg-xkbcomp
Sources ['git+https://gitlab.freedesktop.org/xorg/app/xkbcomp.git?signed#tag=xkbcomp-1.5.0']
Dependencies ['glibc', 'libx11', 'libxkbfile']
Optional-Dependencies []
Build-Dependencies ['git', 'xorg-util-macros']
Provides []
Builddate 03-12-2025 17:04:46
Architecture x86_64
Distro-Version
Licenses ['LicenseRef-xkbcomp']
Hash 662f4ad50763b9d4192bb4f2bbd81ba3c50630a0ec2a83a13deb8770f785734d
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xkbcomp
pkgver=1.5.0
pkgrel=1
pkgdesc="X Keyboard description compiler"
arch=(x86_64)
url="https://gitlab.freedesktop.org/xorg/app/xkbcomp"
license=('LicenseRef-xkbcomp')
depends=('libxkbfile' 'libx11' 'glibc')
makedepends=('git' 'xorg-util-macros')
groups=('xorg-apps' 'xorg')
source=(git+https://gitlab.freedesktop.org/xorg/app/xkbcomp.git?signed#tag=xkbcomp-${pkgver})
sha512sums=('5ba24d230fe9463ff1ec1ed1c2d15a7b850085ac9e1a75d941ebe29ae6035fd12d707845fba12385fb297b64c1bb54e3a5bcb323ea547710c00f232abdefa656')
validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office@who-t.net>
#validpgpkeys+=('A66D805F7C9329B4C5D82767CCC4F07FAC641EFF') # "Daniel Stone <daniels@collabora.com>"
#validpgpkeys+=('DD38563A8A8224537D1F90E45B8A2D50A0ECD0D3') # "Adam Jackson <ajax@benzedrine.nwnk.net>"
#validpgpkeys+=('3BB639E56F861FA2E86505690FDD682D974CA72A') # "Matt Turner <mattst88@gmail.com>"
#validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # "Alan Coopersmith <alan.coopersmith@oracle.com>"

prepare() {
  cd xkbcomp
  autoreconf -fiv
}
  
build() {
  cd xkbcomp
  ./configure --prefix=/usr
  make
}

check() {
  cd xkbcomp
  make check
}

package() {
  cd xkbcomp
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}