# libevdev 1.13.4 — VARIANTE incoming-kde (override) para la campaña KDE. Igual que la canónica pero con
# symlink `python`→python3 en PATH: el configure usa AM_PATH_PYTHON (busca `python`, el toolchain sólo
# tiene `python3`) ⇒ "no suitable Python interpreter". python sólo se usa para generar los .h de eventos.
# Dep de build de libinput (que kwin exige ≥1.28). Autotools.
name    = "libevdev"
version = "1.13.4"
license = "MIT"

[source]
tarball = "https://www.freedesktop.org/software/libevdev/libevdev-1.13.4.tar.xz"
sha256  = "f00ab8d42ad8b905296fab67e13b871f1a424839331516642100f82ad88127cd"

[build]
compiler = "gcc"
target   = "x86_64-linux-musl"
link     = "dynamic"
flags    = []

[build.phases]
configure = '''
mkdir -p /tmp/pybin && ln -sf "$(command -v python3)" /tmp/pybin/python
PATH="/tmp/pybin:$PATH" PYTHON=python3 ./configure --build=$CBUILD --host=$CHOST --prefix=/usr --disable-static
'''
compile   = 'make'
install   = 'make DESTDIR=/out install'

[deps]
build = ["pkgconf", "python3"]
