diff --git a/temp/libevdev/APKBUILD b/temp/libevdev/APKBUILD new file mode 100644 index 000000000..a5b749260 --- /dev/null +++ b/temp/libevdev/APKBUILD @@ -0,0 +1,27 @@ +# Forked from Alpine, because it's missing for armv7 + +pkgname=libevdev +pkgver=1.10.0 +pkgrel=0 +pkgdesc="Kernel Evdev Device Wrapper Library" +url="https://www.freedesktop.org/wiki/Software/libevdev" +arch="armv7" +license="MIT" +options="!check" # Requires CONFIG_INPUT_UINPUT in kernel +makedepends="meson python3 linux-headers doxygen" +subpackages="$pkgname-dev $pkgname-doc" +source="https://freedesktop.org/software/libevdev/libevdev-$pkgver.tar.xz" + +build() { + abuild-meson \ + -Dtests=disabled \ + -Ddocumentation=enabled \ + . output + meson compile ${JOBS:+-j ${JOBS}} -C output +} + +package() { + DESTDIR="$pkgdir" meson install --no-rebuild -C output +} + +sha512sums="94ab4ee7e0854c41a491d8e4713baa95ae66dd337b41823011c0913aa1c72e8bbf8b808d5936c2ef456af794b6d3a5cd7cd0515fbd1d06dd1b7ba19275bd928f libevdev-1.10.0.tar.xz" diff --git a/temp/libinput/APKBUILD b/temp/libinput/APKBUILD new file mode 100644 index 000000000..bc518636a --- /dev/null +++ b/temp/libinput/APKBUILD @@ -0,0 +1,47 @@ +# Forked from Alpine: missing for armv7, just like xorg-server +# https://postmarketos.org/edge/2020/12/01/xorg-server-moved/ + +pkgname=libinput +pkgver=1.16.4 +pkgrel=0 +pkgdesc="Library for handling input devices" +url="https://www.freedesktop.org/wiki/Software/libinput" +arch="armv7" +license="MIT" +makedepends="eudev-dev libevdev-dev meson mtdev-dev" +checkdepends="diffutils bash" +subpackages=" + $pkgname-dev + $pkgname-doc + $pkgname-libs + $pkgname-zsh-completion + " +source="https://freedesktop.org/software/libinput/libinput-$pkgver.tar.xz" +options="!check" + +build() { + abuild-meson \ + -Ddocumentation=false \ + -Dlibwacom=false \ + -Ddebug-gui=false \ + -Dtests=false builddir/ + meson compile ${JOBS:+-j ${JOBS}} -C builddir/ +} + +check() { + meson test --no-rebuild -v -C builddir +} + +package() { + DESTDIR="$pkgdir" meson install --no-rebuild -C builddir +} + +libs() { + default_libs + + mv "$pkgdir"/usr/lib/udev "$subpkgdir"/usr/lib + mkdir -p "$subpkgdir"/usr/share/ + mv "$pkgdir"/usr/share/libinput "$subpkgdir"/usr/share +} + +sha512sums="a95a3bcf58a9298946d15f4f2fd93dc5807d3042f8797950a1ffd96d3c979b55a764f035a9f7680d0ea400b033698c322eb61a4387dbc280db6110ffd3e137ee libinput-1.16.4.tar.xz"