summaryrefslogtreecommitdiff
path: root/community/gpaste/APKBUILD
blob: 884006be7166b9c814f4647bc9a4b3d7f70aa976 (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
59
60
61
62
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gpaste
pkgver=44.0
pkgrel=0
pkgdesc="Clipboard managment system"
url="https://github.com/Keruspe/GPaste"
arch="all !armhf !s390x !riscv64" # limited by gnome-control-center
license="BSD-2-Clause"
makedepends="
	appstream-glib-dev
	dbus-dev
	desktop-file-utils
	gcr4-dev
	gjs-dev
	gnome-control-center-dev
	gtk+3.0-dev
	libadwaita-dev
	meson
	mutter-dev
	vala
	"
subpackages="
	$pkgname-dev
	$pkgname-lang
	$pkgname-doc
	$pkgname-gnome:_gnome:noarch
	$pkgname-bash-completion:bashcomp
	$pkgname-zsh-completion:zshcomp
	"
source="gpaste-$pkgver.tar.gz::https://github.com/Keruspe/GPaste/archive/v$pkgver.tar.gz"
builddir="$srcdir/GPaste-$pkgver"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dsystemd=false \
		-Dintrospection=true \
		-Dvapi=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

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

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

_gnome() {
	install_if="$pkgname=$pkgver-r$pkgrel gnome-shell gnome-control-center"
	depends="gnome-control-center"

	amove usr/share/gnome-shell
	amove usr/share/gnome-control-center
}

sha512sums="
7cf2ce1d1de421b8b4e1301c244292443e1ce2b3c587f0dbe9427045283c822c844a76387978919006e7aa8d29b28f261b2ae118ec486307fd3f3ab1ac848077  gpaste-44.0.tar.gz
"