From f365af3483028b57eb4a2dec75f30637ddfdc9b9 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 9 Oct 2026 14:19:59 -0400 Subject: [PATCH] Initial commit. --- .gitignore | 42 ++++++++++++++++++- .../ArchLinux/wine-access-git/PKGBUILD | 40 ++++++++++++++++++ .../ArchLinux/wine-access-git/README.md | 34 +++++++++++++++ 3 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 distro-packages/ArchLinux/wine-access-git/PKGBUILD create mode 100644 distro-packages/ArchLinux/wine-access-git/README.md diff --git a/.gitignore b/.gitignore index 0ba45dd..f97c14f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,42 @@ -/build/ +# Build and local installation directories +build/ +build-*/ +cmake-build-*/ /install/ + +# CMake output, including accidental in-source builds +CMakeFiles/ +CMakeCache.txt +cmake_install.cmake +install_manifest.txt +compile_commands.json +CTestTestfile.cmake +Testing/ +/Makefile +/generated/ + +# Compiled objects, libraries, and Wine launchers +*.o +*.obj +*.a +*.lib +*.so +*.so.* +*.dll +*.exe +*.pdb +*.d + +# Arch makepkg checkouts, staging directories, packages, and logs +/distro-packages/ArchLinux/*/src/ +/distro-packages/ArchLinux/*/pkg/ +/distro-packages/ArchLinux/wine-access-git/wine-access/ +/distro-packages/ArchLinux/*/*.log +*.pkg.tar.* +*.src.tar.* + +# Editor backups and desktop metadata +*~ +*.swp +*.swo +.DS_Store diff --git a/distro-packages/ArchLinux/wine-access-git/PKGBUILD b/distro-packages/ArchLinux/wine-access-git/PKGBUILD new file mode 100644 index 0000000..501f62f --- /dev/null +++ b/distro-packages/ArchLinux/wine-access-git/PKGBUILD @@ -0,0 +1,40 @@ +pkgname=wine-access-git +pkgver=r1.g6edf455 +pkgrel=1 +pkgdesc='Wine accessibility helper with MSAA, NVDA Controller, and Tolk compatibility for Cthulhu' +arch=('x86_64') +url='https://git.stormux.org/storm/wine-access' +license=('LGPL-2.1-or-later') +depends=('glib2' 'wine') +makedepends=('cmake' 'git' 'pkgconf') +provides=('wine-access') +conflicts=('wine-access') + +# Use authenticated SSH while the repository is private. This can also be +# overridden with a file:// URL to build from a local Git repository. +_git_url=${WINE_ACCESS_GIT_URL:-ssh://gitea@git.stormux.org:1101/storm/wine-access} +source=("wine-access::git+${_git_url}") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/wine-access" + printf 'r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cmake -S "$srcdir/wine-access" -B "$srcdir/build" \ + -DCMAKE_TOOLCHAIN_FILE="$srcdir/wine-access/winelib-toolchain.cmake" \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBEXECDIR=libexec + cmake --build "$srcdir/build" +} + +package() { + DESTDIR="$pkgdir" cmake --install "$srcdir/build" + + # CMake installs these artifacts as files; Wine's launcher must be executable. + chmod 755 "$pkgdir/usr/libexec/cthulhu/wine/cthulhu-wine-access.exe" + install -Dm644 "$srcdir/wine-access/README.md" \ + "$pkgdir/usr/share/doc/wine-access/README.md" +} diff --git a/distro-packages/ArchLinux/wine-access-git/README.md b/distro-packages/ArchLinux/wine-access-git/README.md new file mode 100644 index 0000000..029714a --- /dev/null +++ b/distro-packages/ArchLinux/wine-access-git/README.md @@ -0,0 +1,34 @@ +# Arch Linux package + +Run from this directory: + +```sh +makepkg -si +``` + +The default source uses the project's SSH remote on port 1101. Once the +repository exists, your SSH key must have access while it remains private. + +Before the remote exists, build from the committed sources in your local +checkout instead: + +```sh +WINE_ACCESS_GIT_URL=file:///home/storm/git/wine-access makepkg -si +``` + +Git sources include committed files only. Adjust that path if your checkout is +elsewhere. To use HTTPS after the repository becomes public: + +```sh +WINE_ACCESS_GIT_URL=https://git.stormux.org/storm/wine-access.git makepkg -si +``` + +The package installs both Winelib artifacts under +`/usr/libexec/cthulhu/wine/`. If your reader does not discover that system +location automatically, set this in the environment of the reader's service: + +```sh +export CTHULHU_WINE_ACCESS_HELPER=/usr/libexec/cthulhu/wine/cthulhu-wine-access.exe +``` + +The helper requires a running reader implementing the Cthulhu D-Bus service.