blob: 75407f8721457abbabfe9f8c0969ace907a29a94 (
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
|
# Maintainer: Andre Schröder <andre.schroedr at gmail dot com>
# All my PKGBUILDs are managed at https://github.com/schra/pkgbuilds
_name=x11docker
pkgname=$_name-git
pkgver=r1488.d450275
_mainfolder=$_name
pkgrel=1
pkgdesc='Run GUI applications and desktops in Docker. Focus on security.'
arch=(any)
url=https://github.com/mviereck/x11docker
license=(MIT)
install=x11docker.install
# these are the core and recommended dependencies from
# https://github.com/mviereck/x11docker/wiki/dependencies
depends=(bash docker xpra xorg-server-xephyr xorg-xinit xorg-xauth xclip
xorg-xhost xorg-xrandr xorg-xdpyinfo)
optdepends=('cups: --printer support'
'kwin: --kwin, --kwin-xwayland support'
'nxagent: --nxagent support'
'pulseaudio: --pulseaudio support'
'weston: --weston, --xpra-xwayland, --weston-xwayland, --xdummy-xwayland support'
'xdotool: --xpra-xwayland, --xdummy-xwayland support'
'xorg-server-xvfb: --xvfb support'
'xorg-server-xwayland: --xpra-xwayland, --weston-xwayland, --kwin-xwayland, --xwayland, --xdummy-xwayland support'
'xorg-server: --xorg, --xdummy support')
source=(git+$url)
sha256sums=('SKIP')
conflicts=($_name)
provides=($_name)
pkgver() {
cd "$srcdir/$_mainfolder"
# from https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "$srcdir/$_mainfolder"
# I don't use `x11docker --install` on purpose here since it wasn't designed
# for packaging but rather for directly installing the program.
# I don't install `x11docker-gui` since I don't use it and it depends on
# another program that I had to package first.
install -Dm755 x11docker -t "$pkgdir/usr/bin"
install -Dm644 README.md CHANGELOG.md -t "$pkgdir/usr/share/doc/$_name"
install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$_name"
}
|