1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/kitty/kitty.post-install
2023-02-07 22:01:53 +01:00

16 lines
694 B
Bash

#!/bin/sh
# XXX: This is workaround for inability to combine provides, provider_priority,
# and install_if - the package with higher priority is always installed
# despite install_if pulls the package with a lower priority into the
# transaction.
# If the user install both kitty and wayland/libx11 in a single transaction
# (apk add kitty wayland), this is script is run *before* wayland is installed.
if ! apk info -eq wayland && ! apk info -eq libx11; then
echo '* kitty needs either "wayland" or "libx11" to be installed!' >&2
fi
echo '* If you want to display images in terminal (icat), install "imagemagick".' >&2
echo '* The "kitten" executable is found in kitty-kitten.' >&2
exit 0