cruxports/lagrange/Pkgfile

31 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2022-02-05 15:39:19 -05:00
# Description: graphical gemini browser using SDL
# URL: https://gmi.skyjake.fi/lagrange/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: libsdl2 libunistring zip
2023-03-10 19:40:55 -05:00
# Optional: mpg123 fribidi harfbuzz libwebp
2022-02-05 15:39:19 -05:00
name=lagrange
2024-11-20 08:56:32 -05:00
version=1.18.3
2022-02-05 15:39:19 -05:00
release=1
source=(https://git.skyjake.fi/skyjake/$name/releases/download/v$version/$name-$version.tar.gz)
build() {
2022-06-16 11:43:02 -04:00
prt-get isinst fribidi || PKGMK_LAGRANGE="-DENABLE_FRIBIDI=OFF"
prt-get isinst harfbuzz || PKGMK_LAGRANGE+=" -DENABLE_HARFBUZZ=OFF"
prt-get isinst libwebp || PKGMK_LAGRANGE+=" -DENABLE_WEBP=OFF"
prt-get isinst mpg123 || PKGMK_LAGRANGE+=" -DENABLE_MPG123=OFF"
2023-02-10 21:16:54 -05:00
2023-06-09 08:41:52 -04:00
# workaround for incomplete Wayland support in the SDL videodriver
prt-get isinst wayland && PKGMK_LAGRANGE+=" -DENABLE_POPUP_MENUS=NO"
2023-07-02 20:43:23 -04:00
cmake -S $name-$version -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release ${PKGMK_LAGRANGE} \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2023-03-10 19:40:55 -05:00
-DCMAKE_INSTALL_PREFIX="/usr" \
2023-10-21 19:34:23 -04:00
-DCMAKE_INSTALL_LIBDIR=lib
2023-02-10 21:16:54 -05:00
2023-07-02 20:43:23 -04:00
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
2023-02-10 21:16:54 -05:00
rm -rf $PKG/usr/share/metainfo
2022-02-05 15:39:19 -05:00
}