Date: Monday, April 10, 2023 @ 07:26:18
Author: grawlinson
Revision: 1443793
archrelease: copy trunk to staging-x86_64
Added:
oil/repos/staging-x86_64/
oil/repos/staging-x86_64/PKGBUILD
(from rev 1443791, oil/trunk/PKGBUILD)
oil/repos/staging-x86_64/oil.install
(from rev 1443791, oil/trunk/oil.install)
-------------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
oil.install | 12 ++++++++++++
2 files changed, 49 insertions(+)
Copied: oil/repos/staging-x86_64/PKGBUILD (from rev 1443791, oil/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2023-04-10 07:26:18 UTC (rev 1443793)
@@ -0,0 +1,37 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Yigit Sever <yigit at yigitsever dot com>
+# Contributor: Qontinuum <[email protected]>
+# Contributor: timetoplatypus <[email protected]>
+# Contributor: andychu <[email protected]>
+
+pkgname=oil
+pkgver=0.14.2
+pkgrel=1
+pkgdesc='A new Unix shell'
+arch=('x86_64')
+url='https://www.oilshell.org'
+license=('Apache')
+depends=('glibc' 'readline')
+makedepends=('bash')
+replaces=('osh')
+install=oil.install
+options=('!lto' '!strip')
+source=("$url/download/$pkgname-$pkgver.tar.xz")
+sha512sums=('2a43b155e51e345fb25f6515eaf7c09a1c2dbb497935551943839e38d464f598f14f1c97f51b757f4a9d18229d92bcb65c328f46679b77f9b2210b0c6bbd7786')
+b2sums=('b18cd14937169aaea9ac9160be215f293a1923219c1187f2e5ebc027386b44f0530bc8b93110f47cef5b361677501b14bf1efe1b5bb0c062b4d0d23bf9e62b4d')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --datarootdir=/usr/share
+
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+}
Copied: oil/repos/staging-x86_64/oil.install (from rev 1443791,
oil/trunk/oil.install)
===================================================================
--- staging-x86_64/oil.install (rev 0)
+++ staging-x86_64/oil.install 2023-04-10 07:26:18 UTC (rev 1443793)
@@ -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
+}