aboutsummaryrefslogtreecommitdiffstats
path: root/community/gpaste/APKBUILD
blob: 093f2286af0b532a2a229dd1dce0e66954c1884c (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gpaste
pkgver=3.34.1
pkgrel=0
pkgdesc="Clipboard managment system"
url="https://github.com/Keruspe/GPaste"
arch="all !armhf !s390x !ppc64le" # limited by gnome-control-center
license="BSD-2-Clause"
makedepends="meson gtk+3.0-dev gnome-control-center-dev dbus-dev mutter-dev
	gjs-dev appstream-glib-dev vala"
subpackages="$pkgname-dev $pkgname-lang $pkgname-doc $pkgname-gnome:_gnome"
source="gpaste-$pkgver.tar.gz::https://github.com/Keruspe/GPaste/archive/v$pkgver.tar.gz"
builddir="$srcdir/GPaste-$pkgver"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		-Dsystemd=false \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

_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="0560b7a0616eaf271d13e2db98f924894236e2714f97d80e6dce1bbb3589073b812b4c641d5fe0557a17e4e05b7506ab90418c7b45ddf953059b970fd4eac52e  gpaste-3.34.1.tar.gz"