# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xkeyboard-config
version=2.38
build=1sml
homepage="https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config"
download="https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/archive/xkeyboard-config-$version/xkeyboard-config-xkeyboard-config-$version.tar.bz2"
desc="X keyboard configuration files"
requires="intltool libxslt xkbcomp"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix=/

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
1193c7483d15963bfd1560af9cfeee22f4896d63b1f6ec8f61b1431225689280cac226f321fe74193026f32d18e8b177f572df91fa81abc338aa7f022c1e2f5c  xkeyboard-config-2.38.tar.lz
"
