summaryrefslogtreecommitdiff
path: root/repo/fish/fish.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
committerdavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
commit66c326b6d65388e9f1003715ad9675505f01f9d2 (patch)
tree40d7355cccfa3464902cf339a563e744c28a7101 /repo/fish/fish.xibuild
parentfccdaa986f67f820df2914bef851d5fed77abac8 (diff)
added porting from alpine linux
Diffstat (limited to 'repo/fish/fish.xibuild')
-rw-r--r--repo/fish/fish.xibuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/repo/fish/fish.xibuild b/repo/fish/fish.xibuild
new file mode 100644
index 0000000..bc4908c
--- /dev/null
+++ b/repo/fish/fish.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+NAME="fish"
+DESC="Modern interactive commandline shell"
+
+MAKEDEPS="cmake "
+DEPS="bc sbase pcre2-32 musl ncurses "
+
+PKG_VER=3.4.1
+SOURCE="https://github.com/fish-shell/fish-shell/releases/download/$PKG_VER/fish-$PKG_VER.tar.xz"
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+check() {
+ cd build
+ ./fish_tests
+ cd ..
+}
+
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}