summaryrefslogtreecommitdiff
path: root/community/gnome-clocks/APKBUILD
blob: 639cce49200f06ef409e6a8ed90eef746cfad8db (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-clocks
pkgver=42.0
pkgrel=0
pkgdesc="Clock application designed for GNOME 3"
url="https://wiki.gnome.org/Apps/Clocks"
arch="all"
license="GPL-2.0-or-later"
depends="gsettings-desktop-schemas waked"
makedepends="
	desktop-file-utils
	geoclue-dev
	geocode-glib-dev
	gettext-dev
	glib-dev
	gnome-desktop-dev
	gsound-dev
	gtk4.0-dev
	itstool
	libgweather4-dev
	libadwaita-dev
	meson
	vala
	"
checkdepends="appstream-glib"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnome-clocks/${pkgver%.*}/gnome-clocks-$pkgver.tar.xz
	0001-invoke-waked-when-an-alarm-changes.patch
	0002-Add-argument-to-start-initial-instance-in-the-backgr.patch
	gnome-clocks.desktop
	"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

	install -Dm644 "$srcdir"/gnome-clocks.desktop \
		"$pkgdir"/etc/xdg/autostart/gnome-clocks.desktop
}

sha512sums="
f642cb4a626de2a97ad78c25922bb933bdac917d363097fcf5149310111abd11834410b48bfb4fc9cbae06f0ab30b0a5200d45304ce292b5a9558a90b922edb4  gnome-clocks-42.0.tar.xz
c90471803b810eedbfe1a721e6a1182a711d73f5ded8b82d4246b02fa3c660234d7dfcf3aa84e8b7a3e8dece268ab4c725890cb763f8b226fa80dab7b7c02314  0001-invoke-waked-when-an-alarm-changes.patch
ffb93c5e5ff4f888c3e1308142af332f15293b84018b262398f7a41216bc1b91eb1c02bd551db079b4e35cca184c70462d8fa900a94f3afeadb033ff41046b55  0002-Add-argument-to-start-initial-instance-in-the-backgr.patch
49126e7428054e87d861468aa714637f2034b620f34aba6b898c7c187524ee5057596bbcebec9bdec471336e8df1edbf48c2ef594898d0e6c559b1f19af39510  gnome-clocks.desktop
"