43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Maintainer: Felitendo
|
|
# This PKGBUILD is updated automatically:
|
|
# https://github.com/Felitendo/PKGBUILDS
|
|
|
|
pkgname=timetable
|
|
pkgver=4.3.0
|
|
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-requests' 'python-pyotp' 'glib2'
|
|
'hicolor-icon-theme')
|
|
makedepends=('meson' 'ninja' 'glib2-devel' 'gettext')
|
|
provides=('untis')
|
|
conflicts=('untis')
|
|
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
|
|
sha256sums=('76b1f132ed2ec13ad8f81d980930ab1148b24bdc02f1a1de15f20a64b9d2bf2e')
|
|
|
|
prepare() {
|
|
# Upstream does not maintain the version in meson.build; use the release tag
|
|
# so the About dialog shows the right version.
|
|
sed -i "0,/version:/s/version: *'[^']*'/version: '$pkgver'/" untis/meson.build
|
|
}
|
|
|
|
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"
|
|
}
|