aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornibon7 <nibon7@163.com>2021-11-18 09:04:19 +0800
committerLeo <thinkabit.ukim@gmail.com>2021-11-18 10:07:44 +0000
commitf6276e5543afa2ff4e07ead19a0dcf6e3d4d33a3 (patch)
tree9cfae32aba9b6ed9e1c0dcd1933a4801829d3c8a
parenta32d2425ae964571e0a5e3dbedb7b6fac8a5fddf (diff)
downloadaports-f6276e5543afa2ff4e07ead19a0dcf6e3d4d33a3.tar.gz
aports-f6276e5543afa2ff4e07ead19a0dcf6e3d4d33a3.tar.bz2
aports-f6276e5543afa2ff4e07ead19a0dcf6e3d4d33a3.tar.xz
testing/nushell: add install scripts
Signed-off-by: nibon7 <nibon7@163.com>
-rw-r--r--testing/nushell/APKBUILD3
-rw-r--r--testing/nushell/nushell.post-install3
l---------testing/nushell/nushell.post-upgrade1
-rw-r--r--testing/nushell/nushell.pre-deinstall3
4 files changed, 9 insertions, 1 deletions
diff --git a/testing/nushell/APKBUILD b/testing/nushell/APKBUILD
index 2828ef7ff7..67e5279fa5 100644
--- a/testing/nushell/APKBUILD
+++ b/testing/nushell/APKBUILD
@@ -2,13 +2,14 @@
# Maintainer: nibon7 <nibon7@163.com>
pkgname=nushell
pkgver=0.40.0
-pkgrel=0
+pkgrel=1
pkgdesc="A new type of shell"
url="https://www.nushell.sh"
# s390x, mips, mips64: limited by cargo
arch="all !s390x !mips !mips64 !riscv64"
license="MIT"
makedepends="cargo pkgconf openssl1.1-compat-dev libx11-dev libxcb-dev libgit2-dev python3"
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
source="$pkgname-$pkgver.tar.gz::https://github.com/nushell/nushell/archive/$pkgver.tar.gz
0001-remove-dataframe-feature-from-default.patch"
diff --git a/testing/nushell/nushell.post-install b/testing/nushell/nushell.post-install
new file mode 100644
index 0000000000..ddf9b4d4e5
--- /dev/null
+++ b/testing/nushell/nushell.post-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+add-shell '/usr/bin/nu'
+exit 0
diff --git a/testing/nushell/nushell.post-upgrade b/testing/nushell/nushell.post-upgrade
new file mode 120000
index 0000000000..a023e4e933
--- /dev/null
+++ b/testing/nushell/nushell.post-upgrade
@@ -0,0 +1 @@
+nushell.post-install \ No newline at end of file
diff --git a/testing/nushell/nushell.pre-deinstall b/testing/nushell/nushell.pre-deinstall
new file mode 100644
index 0000000000..8ea90c0456
--- /dev/null
+++ b/testing/nushell/nushell.pre-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+remove-shell '/usr/bin/nu'
+exit 0