blob: 733c4cd716d729060b24b9749f2e57dc824d2a40 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Hoàng Văn Khải <hvksmr1996 at gmail dot com>
pkgname=dialect-git
pkgver=2.3.0.r20.g70e12f4
pkgrel=1
pkgdesc="A translation app for GNOME."
arch=('any')
url="https://apps.gnome.org/Dialect"
license=('GPL-3.0-or-later')
depends=(
'gst-python'
'libadwaita'
'libsoup3'
'python-dbus'
'python-gobject'
'python-gtts'
)
makedepends=(
'blueprint-compiler'
'git'
'gobject-introspection'
'meson'
)
checkdepends=(
'appstream-glib'
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/dialect-app/dialect.git'
'git+https://github.com/dialect-app/po.git')
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${pkgname%-git}"
git submodule init
git config submodule.po.url "$srcdir/po"
git -c protocol.file.allow=always submodule update
}
build() {
arch-meson "${pkgname%-git}" build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs || :
}
package() {
meson install -C build --destdir "$pkgdir"
}
|