[arch-commits] Commit in xonsh/repos (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:57:19 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:57:18
  Author: felixonmars
Revision: 1059593

archrelease: copy trunk to community-staging-any

Added:
  xonsh/repos/community-staging-any/
  xonsh/repos/community-staging-any/PKGBUILD
    (from rev 1059588, xonsh/trunk/PKGBUILD)
  xonsh/repos/community-staging-any/xonsh.install
    (from rev 1059588, xonsh/trunk/xonsh.install)

---------------+
 PKGBUILD      |   21 +++++++++++++++++++++
 xonsh.install |   11 +++++++++++
 2 files changed, 32 insertions(+)

Copied: xonsh/repos/community-staging-any/PKGBUILD (from rev 1059588, xonsh/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:57:18 UTC (rev 1059593)
@@ -0,0 +1,21 @@
+# Maintainer: Jerome Leclanche <jerome at leclan.ch>
+
+pkgname=xonsh
+pkgver=0.11.0
+pkgrel=2
+pkgdesc="Python-powered, cross-platform, Unix-gazing shell"
+url="https://xon.sh/"
+arch=("any")
+license=("BSD")
+depends=("python" "python-ply" "python-setproctitle")
+optdepends=("python-prompt_toolkit: support for SHELL_TYPE=prompt_toolkit")
+makedepends=("python-setuptools")
+source=("https://github.com/xonsh/xonsh/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
+install=xonsh.install
+sha256sums=("8549da2d8915e62b09c68dffbba3603bc7ccf0d91a1358b90790e468817801ff")
+
+package() {
+	cd "$srcdir/$pkgname-$pkgver"
+	python setup.py install --root="$pkgdir"
+	install -D -m644 license "$pkgdir/usr/share/licenses/$pkgname/license"
+}

Copied: xonsh/repos/community-staging-any/xonsh.install (from rev 1059588, xonsh/trunk/xonsh.install)
===================================================================
--- community-staging-any/xonsh.install	                        (rev 0)
+++ community-staging-any/xonsh.install	2021-12-01 14:57:18 UTC (rev 1059593)
@@ -0,0 +1,11 @@
+post_install() {
+	grep -x /usr/bin/xonsh /etc/shells >/dev/null || echo /usr/bin/xonsh >> /etc/shells
+}
+
+post_remove() {
+	sed -i "/^\/usr\/bin\/xonsh$/d" /etc/shells
+}
+
+post_upgrade() {
+	post_install
+}



More information about the arch-commits mailing list