blob: 8d67702245ebbbb9aeac6bbf583c0e904ad5df21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Jürg Rechsteiner <jrechsteiner@bluewin.ch>
pkgname=vostiraview
pkgver=1.72
pkgrel=1
pkgdesc="Bildbetrachter mit Bearbeitungsfunktionen (PyQt6)"
arch=('any')
url="https://computer-experte.ch"
license=('GPL-3.0-or-later')
depends=('python' 'python-pyqt6' 'python-pillow')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/wergosam/vostiraview/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('05369f4cdbf62fea734295683a59d5085993fb98f01d5d74ac4bba1f7328e75c')
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
# Icon
install -Dm644 vostiraview_icon.svg \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
# Lizenz
install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Desktop-Datei
install -d "$pkgdir/usr/share/applications"
cat > "$pkgdir/usr/share/applications/$pkgname.desktop" << EOF
[Desktop Entry]
Name=VostiraView
Comment=Bildbetrachter mit Bearbeitungsfunktionen
Exec=vostiraview
Icon=vostiraview
Terminal=false
Type=Application
Categories=Graphics;Viewer;Photography;
StartupWMClass=VostiraView
EOF
}
|