aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flatpak/APKBUILD
blob: d039d6e68b0cf89b52406ef0b7c260dc626393e1 (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
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>

pkgname=flatpak
pkgver=0.8.4
pkgrel=0
pkgdesc="Application deployment framework for desktop apps"
url="http://flatpak.org"
arch="all"
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 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="!check 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 \
		|| return 1

	make || return 1
}

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

sha512sums="6981c8edcd387ecab5d2c2f6008a6463a3be51186c6c36d9f0fc437795334c51d96af99f54e776261c2220a6473295a98b44e0507a7077ea7381924fcb4561a4  flatpak-0.8.4.tar.xz
7c37149149c902dcb64eae616e7a5dde188aa2ea3d614c5c79ba5d3c61de1dc5d8ff9112ce7618b9405816b5e5795b4007d6cb095076ef59bf0df536db846e9f  musl-fixes.patch"