blob: 46fe2aee1d1d9fc8de4458cbd56be3b82d6bad96 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: MrHaku81 <haku81.kk@gmail.com>
pkgname=print-ease
pkgver=0.2.0
pkgrel=1
pkgdesc="Find and use printers and scanners instantly - zero config required"
arch=('any')
url="https://github.com/MrHaku81/print-ease"
license=('GPL-3.0-or-later')
depends=(
'python'
'gtk4'
'libadwaita'
'python-gobject'
'python-pycups'
'cups'
'avahi'
)
makedepends=(
'python-build'
'python-installer'
'python-hatchling'
'python-wheel'
'gettext'
)
optdepends=(
'python-pillow: PDF assembly for software duplex ADF scanning'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/MrHaku81/print-ease/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('ef59bf9549b122e45c1ad770a07d395fff3ebf8667caad0d686ef3e406859293')
build() {
cd "$pkgname-$pkgver"
# Compile translations (.mo files needed by hatchling artifacts)
make mo
# Build wheel (hatchling picks up .mo via artifacts)
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname-$pkgver"
# Python wheel
python -m installer --destdir="$pkgdir" dist/*.whl
# Desktop entry
install -Dm644 data/at.printease.PrintEase.desktop \
"$pkgdir/usr/share/applications/at.printease.PrintEase.desktop"
# Scalable SVG icon
install -Dm644 data/icons/hicolor/scalable/apps/print-ease.svg \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/print-ease.svg"
# License (Arch convention)
install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|