summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbf2cbdbf0cee83f0b7fb796e25b12df165b41e6 (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
# Maintainer: madelineceleste
# this is my first pkgbuild. might be issues with it but its better than the outdated one that didnt even work at least!!
# (original version uses autotools for build which were removed from flatpak a hot sec ago in favor of meson)

pkgname=flatpak-git
_pkgname=flatpak
pkgver=1.16.1+7+gb5f9d6e1
pkgrel=1
pkgdesc="Linux application sandboxing and distribution framework (formerly xdg-app) (git)"
arch=(x86_64 aarch64)
url="https://github.com/flatpak/flatpak"
license=(LGPL2.1)
depends=('ostree' 'libarchive' 'bubblewrap' 'appstream-glib' 'polkit' 'appstream' 'xdg-dbus-proxy' 'glib2-devel' 'gobject-introspection' 'socat')
makedepends=('git' 'meson' 'ninja' 'gtk-doc' 'docbook-xsl' 'docbook-xml' 'python' 'python-pyparsing' 'gi-docgen')
provides=('flatpak')
conflicts=('flatpak')
source=("git+https://github.com/flatpak/flatpak.git")
sha256sums=('SKIP')
options=(!debug) # dont waaaaaant flatpak-git-debug package please

pkgver() {
  cd $_pkgname
  git describe --tags | sed 's/-/+/g'
}

build() {
  cd flatpak
  meson setup \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    -Dselinux_module=disabled \
    -Ddbus_config_dir=/usr/share/dbus-1/system.d \
    -Dprivileged_group=sudo \
    -Drun_media_dir=/media \
    -Dsystem_bubblewrap=bwrap \
    -Dsystem_dbus_proxy=xdg-dbus-proxy \
    -Dsystemdsystemunitdir=/usr/lib/systemd/system \
    -Dsystemdsystemenvgendir=/usr/lib/systemd/system-environment-generators \
    -Dgtkdoc=disabled \
  build
  meson compile -C build
}

package() {
  cd flatpak
  
  DESTDIR="$pkgdir" meson install -C build
}