summaryrefslogtreecommitdiff
path: root/repo/fish/fish.xibuild
blob: 7d8acd9f5cf283f53141540d4b2d32a03e1024a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

NAME="fish"
DESC="Modern interactive commandline shell"

MAKEDEPS="cmake "
DEPS="bc sbase pcre2-32 musl ncurses "

PKG_VER=3.5.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
}