aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xdg-desktop-portal-gtk/APKBUILD
blob: a9b6e8d2e9c26864106b8c340239961dbb73f399 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=xdg-desktop-portal-gtk
pkgver=1.5.0
pkgrel=0
pkgdesc="Gtk implementation of xdg-desktop-portal"
url="https://github.com/flatpak/xdg-desktop-portal-gtk"
arch="all"
license="LGPL-2.1-or-later"
depends="xdg-desktop-portal"
makedepends="gtk+3.0-dev dbus-dev libx11
	autoconf automake libtool"
subpackages="$pkgname-lang"
source="https://github.com/flatpak/xdg-desktop-portal-gtk/releases/download/$pkgver/xdg-desktop-portal-gtk-$pkgver.tar.xz
	x11.patch
	"

prepare() {
	default_prepare

	sed 's|/usr/bin/sh|/bin/sh|' \
		-i compile \
		-i missing \
		-i install-sh \
		-i depcomp \
		-i config.sub \
		-i config.guess

	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="44e16161edac74a0a870a1dfa15eaad14eaa778abbaa48c11bb690b73fb250b3fd9326f7caf8cb797b4a7c3fa945adf3dee8c328631b1589e46773e3fd8f227b  xdg-desktop-portal-gtk-1.5.0.tar.xz
899867929a0ba9a28fb05db056514b6c97869c619c9919f85ecc831ceaf3568fa9aa35ad4409f2458dab9e262bb0eca791e92b990424d59fd4ca74f6498a3846  x11.patch"