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

George Rawlinson grawlinson at gemini.archlinux.org
Sat Jan 1 21:25:00 UTC 2022


    Date: Saturday, January 1, 2022 @ 21:24:59
  Author: grawlinson
Revision: 1092010

archrelease: copy trunk to community-x86_64

Added:
  oil/repos/community-x86_64/
  oil/repos/community-x86_64/PKGBUILD
    (from rev 1092009, oil/trunk/PKGBUILD)
  oil/repos/community-x86_64/oil.install
    (from rev 1092009, oil/trunk/oil.install)

-------------+
 PKGBUILD    |   37 +++++++++++++++++++++++++++++++++++++
 oil.install |   12 ++++++++++++
 2 files changed, 49 insertions(+)

Copied: oil/repos/community-x86_64/PKGBUILD (from rev 1092009, oil/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-01-01 21:24:59 UTC (rev 1092010)
@@ -0,0 +1,37 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Yigit Sever <yigit at yigitsever dot com>
+# Contributor: Qontinuum <qontinuum at artixlinux.org>
+# Contributor: timetoplatypus <timetoplatypus at protonmail.com>
+# Contributor: andychu <andy at oilshell.org>
+
+pkgname=oil
+pkgver=0.9.6
+pkgrel=1
+pkgdesc="A new Unix shell"
+arch=('x86_64')
+url="https://www.oilshell.org"
+license=('Apache')
+depends=('readline')
+makedepends=('bash')
+replaces=('osh')
+install=oil.install
+options=('!lto' '!strip')
+source=("$url/download/$pkgname-$pkgver.tar.xz")
+sha512sums=('541834c75ee9253370edbadc503e96d5a6cad7ea0447b797fe215266a4926e15a4d0c4549153cedef79781768a8e17697fe136b8716ca4355f23a667cfc4244c')
+b2sums=('148cb2ef2fbee45e16b267484038576833447c7d6dda2be9c25ea6859bda2be948d5ff0f338dec4dc9dbd83ff9a59c42b900f3be1a65fa00fbcf1e0d7ba06128')
+
+build() {
+	cd "$pkgname-$pkgver"
+
+	./configure \
+    --prefix=/usr \
+    --with-readline
+
+	make
+}
+
+package() {
+	cd "$pkgname-$pkgver"
+
+	make DESTDIR="$pkgdir" install
+}

Copied: oil/repos/community-x86_64/oil.install (from rev 1092009, oil/trunk/oil.install)
===================================================================
--- community-x86_64/oil.install	                        (rev 0)
+++ community-x86_64/oil.install	2022-01-01 21:24:59 UTC (rev 1092010)
@@ -0,0 +1,12 @@
+post_install() {
+  grep -Fqx /bin/osh /etc/shells || echo /bin/osh >>/etc/shells
+  grep -Fqx /usr/bin/osh /etc/shells || echo /usr/bin/osh >>/etc/shells
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  sed -i -r '/^(\/usr)?\/bin\/osh$/d' etc/shells
+}



More information about the arch-commits mailing list