aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flatpak/APKBUILD
blob: f227fab40af57d721083e254f98e5e095ce3086c (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
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=flatpak
pkgver=0.9.7
pkgrel=0
pkgdesc="Application deployment framework for desktop apps"
url="http://flatpak.org"
arch="all !aarch64"
license="GPL"
depends="bubblewrap"
makedepends="glib-dev libarchive-dev libsoup-dev elfutils-dev libdwarf-dev
             libcap-dev polkit-dev libxau-dev ostree-dev fuse-dev json-glib-dev
             libseccomp-dev libxslt-dev gpgme-dev bubblewrap"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://github.com/flatpak/flatpak/releases/download/$pkgver/flatpak-$pkgver.tar.xz
		musl-fixes.patch"
options="suid"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	./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-dwarf-header=/usr/include/libdwarf \
		--with-system-bubblewrap

	make
}

check() {
	cd "$builddir"
	#make -k check
	./flatpak --version
	./flatpak-builder --version
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="0510e3b58bd3b4239c2eafa9f6776e1489bc0def3e27a8dd1c1aa4f8244e82431b4448cd9e980bbb04dd6c04a1880a97f4913929eb3b73679865e2f5fdb65706  flatpak-0.9.7.tar.xz
9287ed146bf71665aa436a2c2110cc5edc829a7b4a3e3190947580850fe9ecfd2bb6adb015c692af022d425fb5259390fcdcbd402e8b0d12ee5d2c1a1071ed4f  musl-fixes.patch"