summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Schröder2019-10-23 22:34:05 +0200
committerAndre Schröder2019-10-23 22:34:05 +0200
commitf8c0b1bb3507ada402b29b0358af10011f1b7962 (patch)
tree65d94195f705d1189629bd696675d3e4facd135a
downloadaur-f8c0b1bb3507ada402b29b0358af10011f1b7962.tar.gz
Initial upload: x11docker 6.3.0-1
Add x11docker package
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD44
-rw-r--r--x11docker.install6
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d5488d82089
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = x11docker
+ pkgdesc = Run GUI applications and desktops in Docker. Focus on security.
+ pkgver = 6.3.0
+ pkgrel = 1
+ url = https://github.com/mviereck/x11docker
+ install = x11docker.install
+ arch = any
+ license = MIT
+ depends = bash
+ depends = docker
+ depends = xpra
+ depends = xorg-server-xephyr
+ depends = xorg-xinit
+ depends = xorg-xauth
+ depends = xclip
+ depends = xorg-xhost
+ depends = xorg-xrandr
+ depends = xorg-xdpyinfo
+ optdepends = cups: --printer support
+ optdepends = kwin: --kwin, --kwin-xwayland support
+ optdepends = nxagent: --nxagent support
+ optdepends = pulseaudio: --pulseaudio support
+ optdepends = weston: --weston, --xpra-xwayland, --weston-xwayland, --xdummy-xwayland support
+ optdepends = xdotool: --xpra-xwayland, --xdummy-xwayland support
+ optdepends = xorg-server-xvfb: --xvfb support
+ optdepends = xorg-server-xwayland: --xpra-xwayland, --weston-xwayland, --kwin-xwayland, --xwayland, --xdummy-xwayland support
+ optdepends = xorg-server: --xorg, --xdummy support
+ source = https://github.com/mviereck/x11docker/archive/v6.3.0.tar.gz
+ sha256sums = 9a68c5ad376e5d194ac7476f46396e1bafbac5eba66104d579550517f00b4d85
+
+pkgname = x11docker
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e713ebf93e5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Andre Schröder <andre.schroedr at gmail dot com>
+
+# All my PKGBUILDs are managed at https://github.com/schra/pkgbuilds
+
+pkgname=x11docker
+pkgver=6.3.0
+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=(https://github.com/mviereck/x11docker/archive/v$pkgver.tar.gz)
+sha256sums=(9a68c5ad376e5d194ac7476f46396e1bafbac5eba66104d579550517f00b4d85)
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ # 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/$pkgname"
+ install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
+}
diff --git a/x11docker.install b/x11docker.install
new file mode 100644
index 00000000000..b7d57d83d5f
--- /dev/null
+++ b/x11docker.install
@@ -0,0 +1,6 @@
+post_remove() {
+cat << EOF
+ You might want to remove the containers that were created by x11docker:
+ docker rm \$(docker container ls -aq --filter name=x11docker_X)
+EOF
+}