blob: 4627bcd6cc3740d68ea5fc68809ce3fd8207f18d (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=quick-lookup
_app_id=com.github.johnfactotum.QuickLookup
pkgver=2.1.1
pkgrel=1
pkgdesc="Simple GTK dictionary application powered by Wiktionary"
arch=('any')
url="https://github.com/johnfactotum/quick-lookup"
license=('GPL-3.0-or-later')
depends=('gjs' 'gtk4' 'libadwaita' 'webkitgtk-6.0')
makedepends=('meson')
checkdepends=('appstream')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('aae36cdbccdbd1d182b289eb92843d34ff9eb303cb590a38b881bc663dc7d5bb')
prepare() {
cd "$pkgname-$pkgver"
# Correct version
sed -i "s/2.1.0/$pkgver/g" meson.build
}
build () {
arch-meson "$pkgname-$pkgver" build
meson compile -C build
}
check() {
cd "$pkgname-$pkgver"
appstreamcli validate --no-net "${_app_id}.appdata.xml" || :
desktop-file-validate "${_app_id}.desktop"
}
package() {
meson install -C build --destdir "$pkgdir"
}
|