untis, untis-git: rename from timetable, timetable-git
This commit is contained in:
1 parent
8060edfb21
commit
473e43a447
7 files changed
+22
-34
No files matched your search
@@ -0,0 +1,37 @@
|
||||
pkgbase = untis-git
|
||||
pkgdesc = GTK4 + LibAdwaita client for WebUntis (git)
|
||||
pkgver = 4.3.2.r31.g48ce032
|
||||
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
|
||||
makedepends = git
|
||||
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 = python-pillow
|
||||
depends = python-zxing-cpp
|
||||
depends = libportal
|
||||
depends = gstreamer
|
||||
depends = gst-plugins-base
|
||||
depends = gst-plugin-pipewire
|
||||
depends = gst-plugin-gtk4
|
||||
depends = glib2
|
||||
depends = hicolor-icon-theme
|
||||
provides = untis
|
||||
conflicts = untis
|
||||
conflicts = timetable
|
||||
source = untis-git::git+https://codeberg.org/ostfriese4/untis.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = untis-git
|
||||
@@ -0,0 +1,53 @@
|
||||
# Maintainer: Felitendo
|
||||
# This PKGBUILD is updated automatically:
|
||||
# https://github.com/Felitendo/PKGBUILDS
|
||||
|
||||
pkgname=untis-git
|
||||
pkgver=4.3.2.r31.g48ce032
|
||||
pkgrel=1
|
||||
pkgdesc="GTK4 + LibAdwaita client for WebUntis (git)"
|
||||
arch=('any')
|
||||
url="https://codeberg.org/ostfriese4/untis"
|
||||
license=('GPL-3.0-or-later')
|
||||
# main adds a QR code login: the camera comes through the portal (libportal)
|
||||
# as a PipeWire stream, is shown with gtk4paintablesink and decoded with
|
||||
# zxing-cpp's Python binding.
|
||||
depends=('gtk4' 'libadwaita' 'webkitgtk-6.0' 'libsecret' 'python'
|
||||
'python-gobject' 'python-cairo' 'python-requests' 'python-pyotp'
|
||||
'python-pillow' 'python-zxing-cpp' 'libportal' 'gstreamer'
|
||||
'gst-plugins-base' 'gst-plugin-pipewire' 'gst-plugin-gtk4' 'glib2'
|
||||
'hicolor-icon-theme')
|
||||
makedepends=('meson' 'ninja' 'glib2-devel' 'gettext' 'git')
|
||||
provides=('untis')
|
||||
conflicts=('untis' 'timetable')
|
||||
source=("${pkgname}::git+https://codeberg.org/ostfriese4/untis.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
git describe --long --abbrev=7 --tags --match 'v[0-9]*' \
|
||||
| sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
# The About dialog reads the version from src/api.py, which upstream only
|
||||
# sets when it tags a release.
|
||||
sed -i "s/^version = \"[^\"]*\"/version = \"$pkgver\"/" "$pkgname/src/api.py"
|
||||
}
|
||||
|
||||
build() {
|
||||
meson setup build "$pkgname" \
|
||||
--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"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
# untis-git - "Timetable" (https://codeberg.org/ostfriese4/untis) built
|
||||
# from the main branch. Same meson build as untis.
|
||||
#
|
||||
# There is no untis-bin: upstream publishes no binary release assets, and
|
||||
# the app is pure Python anyway, so there would be nothing prebuilt to ship.
|
||||
#
|
||||
# VCS packages are not version-tracked here on purpose. The AUR copy of a -git
|
||||
# PKGBUILD carries only a snapshot of pkgver; the real version comes from
|
||||
# pkgver() when the user builds it. latest_version() therefore reports the
|
||||
# pkgver that is already in the PKGBUILD, which makes the update run a no-op:
|
||||
# the package is rebuilt, re-checked and pushed only when the packaging itself
|
||||
# changes. makepkg then refreshes the pkgver snapshot as part of the test build.
|
||||
|
||||
# Installed in CI (pacman) before the makepkg test build.
|
||||
BUILD_DEPS=(meson ninja glib2 glib2-devel gtk4 libadwaita python
|
||||
python-gobject gettext git)
|
||||
|
||||
latest_version() {
|
||||
grep -Po '^pkgver=\K.*' "$(dirname "${BASH_SOURCE[0]}")/PKGBUILD"
|
||||
}
|
||||
|
||||
# refresh_checksums <version> <pkgbuild-path>
|
||||
# Unreachable: latest_version() never reports a version other than the current
|
||||
# one. The git source carries SKIP checksums, so there would be nothing to do.
|
||||
refresh_checksums() {
|
||||
:
|
||||
}
|
||||
Reference in new issue
Block a user