aboutsummaryrefslogtreecommitdiffstats
path: root/community/flatpak/APKBUILD
blob: 91088d224a19a8a30ad96883645b73cbca15e3a4 (plain) (blame)
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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=flatpak
pkgver=1.4.3
pkgrel=0
pkgdesc="Application deployment framework for desktop apps"
url="https://flatpak.org"
arch="all"
license="LGPL-2.1-or-later"
depends="bubblewrap"
makedepends="glib-dev libarchive-dev libsoup-dev libcap-dev polkit-dev
	libxau-dev ostree-dev>=2018.08 fuse-dev json-glib-dev
	libgcab-dev appstream-glib-dev dconf-dev
	libseccomp-dev libxslt-dev gpgme-dev bison"
subpackages="$pkgname-dev $pkgname-lang"
install="flatpak.pre-install flatpak.pre-upgrade"
source="https://github.com/flatpak/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz
		musl-fixes.patch"
options="suid !check" # Tests fail with no error message

# secfixes:
#   1.2.4-r0:
#     - CVE-2019-10063

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--sbindir=/usr/bin \
		--libexecdir=/usr/lib/$pkgname \
		--disable-static \
		--disable-documentation \
		--with-priv-mode=setuid \
		--with-system-bubblewrap \
		--with-system-helper-user=flatpak

	make
}

check() {
	make -k check
}

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

sha512sums="4812aa08365d0a1078723da5d8dec15573a5692f6f93bcd5a56e60ff55e0a2a1c08ca0efb3efacdc34c544bf30ecec10db1390f4bb7a06007616a43c69bfaafa  flatpak-1.4.3.tar.xz
9287ed146bf71665aa436a2c2110cc5edc829a7b4a3e3190947580850fe9ecfd2bb6adb015c692af022d425fb5259390fcdcbd402e8b0d12ee5d2c1a1071ed4f  musl-fixes.patch"