31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
# 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
|
|
# Optional: mpg123 fribidi harfbuzz libwebp
|
|
|
|
name=lagrange
|
|
version=1.17.0
|
|
release=1
|
|
source=(https://git.skyjake.fi/skyjake/$name/releases/download/v$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
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"
|
|
|
|
# workaround for incomplete Wayland support in the SDL videodriver
|
|
prt-get isinst wayland && PKGMK_LAGRANGE+=" -DENABLE_POPUP_MENUS=NO"
|
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release ${PKGMK_LAGRANGE} \
|
|
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG ninja -C build install
|
|
rm -rf $PKG/usr/share/metainfo
|
|
}
|