feat: initial commit

This commit is contained in:
Barrett Ruth 2026-01-31 17:13:30 -05:00
commit c2522b0fe4
2 changed files with 81 additions and 0 deletions

19
.SRCINFO Normal file
View file

@ -0,0 +1,19 @@
pkgbase = sioyek
pkgdesc = PDF viewer for research papers and technical books
pkgver = 2.0.0
pkgrel = 1
url = https://github.com/ahrm/sioyek
arch = x86_64
license = GPL3
makedepends = git
depends = harfbuzz
depends = qt6-base
depends = qt6-3d
depends = zlib
optdepends = qt6-wayland: Wayland support
provides = sioyek
conflicts = sioyek-git
source = git+https://github.com/ahrm/sioyek.git#tag=v2.0.0
sha256sums = SKIP
pkgname = sioyek

62
PKGBUILD Normal file
View file

@ -0,0 +1,62 @@
pkgname=sioyek-dev
pkgver=2.0.0.r1086.g719e2070
pkgrel=1
pkgdesc="PDF viewer for research papers and technical books (development build with bundled mupdf)"
arch=('x86_64')
license=('GPL3')
url="https://github.com/ahrm/sioyek"
depends=(
'harfbuzz'
'qt6-base'
'qt6-3d'
'qt6-declarative'
'qt6-svg'
'qt6-speech'
'zlib'
)
makedepends=('git')
optdepends=('qt6-wayland: Native Wayland (currently broken, uses XWayland by default)')
provides=('sioyek')
conflicts=('sioyek' 'sioyek-git')
source=("git+https://github.com/ahrm/sioyek.git#branch=development")
sha256sums=('SKIP')
pkgver() {
cd sioyek
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd sioyek
git submodule update --init --recursive mupdf
sed -i '/#define LINUX_STANDARD_PATHS/s/\/\///' pdf_viewer/main.cpp
}
build() {
cd sioyek
make -C mupdf -j$(nproc) USE_SYSTEM_HARFBUZZ=yes HAVE_GLUT=no
qmake6 "CONFIG+=linux_app_image" pdf_viewer_build_config.pro
make -j$(nproc)
}
package() {
cd sioyek
install -Dm755 sioyek "$pkgdir/usr/lib/sioyek/sioyek"
install -Dm755 /dev/stdin "$pkgdir/usr/bin/sioyek" << 'END'
#!/bin/sh
[ -n "$WAYLAND_DISPLAY" ] && export QT_QPA_PLATFORM=xcb
exec /usr/lib/sioyek/sioyek "$@"
END
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 resources/sioyek-icon-linux.png "$pkgdir/usr/share/pixmaps/sioyek.png"
install -Dm644 resources/sioyek.desktop -t "$pkgdir/usr/share/applications/"
install -dm755 "$pkgdir/usr/share/sioyek/shaders"
cp -r pdf_viewer/shaders/* "$pkgdir/usr/share/sioyek/shaders/"
install -Dm644 pdf_viewer/keys.config -t "$pkgdir/etc/sioyek/"
install -Dm644 pdf_viewer/prefs.config -t "$pkgdir/etc/sioyek/"
install -Dm644 resources/sioyek.1 -t "$pkgdir/usr/share/man/man1/"
install -Dm644 tutorial.pdf -t "$pkgdir/usr/share/sioyek/"
}