summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b78e8f754539057740bd109c2a1e92d9190ae2c (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
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: Kimiblock Moe
pkgname=portable-git
epoch=1
pkgver=11.2.r0.gbaced13b
pkgrel=1
epoch=
pkgdesc="Portable Sandboxing framework"
arch=('any')
url="https://github.com/Kraftland/portable"
license=(GPL-3.0-or-later)
provides=(portable)
groups=()
options=(!debug !strip)
conflicts=(portable)

makedepends+=(git)

depends=(
	"libnotify"
	pipewire
	findutils
	"procps-ng"
	"coreutils"
	"xdg-user-dirs"
	"xorg-xhost"
	"zenity"
	"xdg-dbus-proxy"
	"bubblewrap"
	"util-linux"
	"glib2"
	"wayland"
	"dbus"
	"bash"
	"xdg-desktop-portal-impl"
	"inotify-tools"
	"grep"
)

optdepends=(
	'at-spi2-core: accessibility'
	'orca: screen reader'
)

makedepends+=(
	"libarchive"
)

checkdepends=()

source=(portable::git+https://github.com/Kraftland/portable.git)

md5sums=('SKIP')

function pkgver() {
	cd "${srcdir}/portable"
	git describe --long --tags --abbrev=8 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

function package() {
	cd portable
	install -vDm755 portable.sh "${pkgdir}/usr/bin/portable"
	install -d "${pkgdir}/usr/lib/"
	cp -r "${srcdir}/portable/lib" "${pkgdir}/usr/lib/portable"
	install -t "${pkgdir}/usr/share/portable" -Dm755 "${srcdir}/portable/share"/*
	install -vDm755 portable-pools "${pkgdir}/usr/bin/portable-pools"
	install -vDm755 portable-packer "${pkgdir}/usr/bin/portable-packer"
	cp -r "${srcdir}/portable/lib/modules-load.d" "${pkgdir}/usr/lib"
}