untis, untis-git: rename from timetable, timetable-git

This commit is contained in:
Felitendo committed 2026-09-28 11:31:12 +02:00
1 parent 8060edfb21
commit 473e43a447
7 files changed
+22 -34

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
pkgbase = untis
pkgdesc = GTK4 + LibAdwaita client for WebUntis
pkgver = 4.3.2
pkgrel = 1
url = https://codeberg.org/ostfriese4/untis
arch = any
license = GPL-3.0-or-later
makedepends = meson
makedepends = ninja
makedepends = glib2-devel
makedepends = gettext
depends = gtk4
depends = libadwaita
depends = webkitgtk-6.0
depends = libsecret
depends = python
depends = python-gobject
depends = python-cairo
depends = python-requests
depends = python-pyotp
depends = glib2
depends = hicolor-icon-theme
conflicts = timetable
source = untis-4.3.2.tar.gz::https://codeberg.org/ostfriese4/untis/archive/v4.3.2.tar.gz
sha256sums = febd90cac783eb1953a3f094c3122b9e47a88e2ae7b8ed33fdc9279300b4505c
pkgname = untis
+42
View File
@@ -0,0 +1,42 @@
# Maintainer: Felitendo
# This PKGBUILD is updated automatically:
# https://github.com/Felitendo/PKGBUILDS
pkgname=untis
pkgver=4.3.2
pkgrel=1
pkgdesc="GTK4 + LibAdwaita client for WebUntis"
arch=('any')
url="https://codeberg.org/ostfriese4/untis"
license=('GPL-3.0-or-later')
depends=('gtk4' 'libadwaita' 'webkitgtk-6.0' 'libsecret' 'python'
'python-gobject' 'python-cairo' 'python-requests' 'python-pyotp'
'glib2' 'hicolor-icon-theme')
makedepends=('meson' 'ninja' 'glib2-devel' 'gettext')
# called timetable on the AUR before; same files
conflicts=('timetable')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('febd90cac783eb1953a3f094c3122b9e47a88e2ae7b8ed33fdc9279300b4505c')
prepare() {
# The About dialog reads the version from src/api.py, and upstream does not
# always update it for a release (v4.3.2 still says 4.3.1).
sed -i "s/^version = \"[^\"]*\"/version = \"$pkgver\"/" untis/src/api.py
}
build() {
meson setup build untis \
--prefix=/usr \
--buildtype=release \
--wrap-mode=nodownload
meson compile -C build
}
package() {
meson install -C build --destdir "$pkgdir"
# generated by pacman hooks; shipping them would cause file conflicts
rm -f "$pkgdir/usr/share/glib-2.0/schemas/gschemas.compiled" \
"$pkgdir/usr/share/applications/mimeinfo.cache" \
"$pkgdir/usr/share/icons/hicolor/icon-theme.cache"
}
+25
View File
@@ -0,0 +1,25 @@
# untis - "Timetable" (https://codeberg.org/ostfriese4/untis), a GTK4 +
# LibAdwaita WebUntis client written in Python.
#
# Upstream publishes no binary release assets, so this is a source package:
# the PKGBUILD builds the meson project from the release tarball.
UPSTREAM_REPO="ostfriese4/untis"
# Installed in CI (pacman) before the makepkg test build.
BUILD_DEPS=(meson ninja glib2 glib2-devel gtk4 libadwaita python
python-gobject gettext)
latest_version() {
curl -sf "https://codeberg.org/api/v1/repos/$UPSTREAM_REPO/releases/latest" \
| jq -r '.tag_name' | sed 's/^v//'
}
# refresh_checksums <version> <pkgbuild-path>
refresh_checksums() {
local ver="$1" pkgbuild="$2"
local sha
sha="$(curl -sfL "https://codeberg.org/$UPSTREAM_REPO/archive/v$ver.tar.gz" \
| sha256sum | cut -d' ' -f1)"
sed -i "s|^sha256sums=.*|sha256sums=('$sha')|" "$pkgbuild"
}