From 885045e7ac5ac9df3ca131a4569767749db99f80 Mon Sep 17 00:00:00 2001 From: cakarsu Date: Thu, 22 Jun 2023 19:16:27 +0000 Subject: [PATCH] Fish Terminal --- app/shell/fish/ympbuild | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 app/shell/fish/ympbuild diff --git a/app/shell/fish/ympbuild b/app/shell/fish/ympbuild new file mode 100644 index 00000000..606714c7 --- /dev/null +++ b/app/shell/fish/ympbuild @@ -0,0 +1,44 @@ +#!/usr/bin/env bash +name='fish' +release='1' +version='3.6.1' +url='https://fishshell.com/' +description='Smart and user friendly shell intended mostly for interactive use' +email='akarsu@protonmail.com' +maintainer='akarsu' +license=('GPLv2') +source=("https://github.com/fish-shell/fish-shell/releases/download/${version}/fish-${version}.tar.xz") +depends=(ncurses libpcre2 gettext) +makedepends=(cmake python) +md5sums=('b721bbff7adc221f4e77b44404727026') +group=(app.shells) +uses=() +arch=('x86_64') + +cd $name-$version + +#export CXXFLAGS+=" ${CPPFLAGS}" + +setup(){ + cmake -B build -G Ninja\ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_SYSCONFDIR=/etc \ + -DFISH_USE_SYSTEM_PCRE2=false +} + +build(){ + cmake --build build --target all fish_tests +} + +package(){ + DESTDIR="$DESTDIR" cmake --install build + rm -fr "$DESTDIR"/usr/share/$name/groff + + mkdir -p "$DESTDIR"/usr/lib + mv "$DESTDIR"/usr/share/pkgconfig "$DESTDIR"/usr/lib + +} +