summaryrefslogtreecommitdiff
path: root/community/gpaste/APKBUILD
blob: 0c155ac6afba958b2b551c03f179026adfa8ab4d (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gpaste
pkgver=42.1
pkgrel=0
pkgdesc="Clipboard managment system"
url="https://github.com/Keruspe/GPaste"
arch="all !s390x !riscv64" # limited by gnome-control-center
license="BSD-2-Clause"
makedepends="
	appstream-glib-dev
	dbus-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 \
		-Dsystemd=false \
		-Dintrospection=true \
		-Dvapi=true \
		. 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
}

_gnome() {
	install_if="$pkgname=$pkgver-r$pkgrel gnome-shell gnome-control-center"
	depends="gnome-control-center"
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/gnome-shell \
		"$pkgdir"/usr/share/gnome-control-center \
		"$subpkgdir"/usr/share
}

sha512sums="
e3f51da55b53e03758450bee967a9f23908c06db71cf687f6de000efb4715263e25020028d488797d8e1f75154f2f00c59b3a427f1aeca5d0132ac927060047e  gpaste-42.1.tar.gz
"