aboutsummaryrefslogtreecommitdiffstats
path: root/community/xdg-desktop-portal/APKBUILD
blob: 2f949024d49278fd4889e64ea2f284aabf0472af (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=xdg-desktop-portal
pkgver=1.4.2
pkgrel=1
pkgdesc="Desktop integration portal"
url="https://github.com/flatpak/xdg-desktop-portal"
arch="all"
license="LGPL-2.1-or-later"
depends="bubblewrap"
makedepends="gettext-dev glib-dev json-glib-dev fontconfig-dev
	geoclue-dev xmlto flatpak-dev pipewire-dev fuse-dev"
checkdepends="dbus"
subpackages="$pkgname-lang $pkgname-doc"
source="https://github.com/flatpak/xdg-desktop-portal/releases/download/${pkgver}/xdg-desktop-portal-${pkgver}.tar.xz"

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
}


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

	# We don't need this
	rm -rf "$pkgdir"/usr/lib/systemd

	mkdir -p "$pkgdir"/usr/lib
	mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib
}

sha512sums="9a19dc8f6899a24f8827ce36447316ce74f293abed469be24adfaa16d18deac0b7c5d77f744eed9b540b54cd23145281dacb6811dc52b34180b21d6dc02efc5a  xdg-desktop-portal-1.4.2.tar.xz"