mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
graphics/ueberzugpp: Updated for version 2.8.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
30b346aa4b
commit
aa5aa14ae3
4 changed files with 20 additions and 20 deletions
|
@ -1,14 +1,15 @@
|
|||
ueberzugpp (drop in replacement for ueberzug written in C++)
|
||||
|
||||
Überzug++ is a command line utility written in C++ which allows to
|
||||
draw images on terminals by using X11 child windows, sixels or the
|
||||
kitty image protocol.
|
||||
Ueberzug++ is a command line utility written in C++ which allows to
|
||||
draw images on terminals by using X11/wayland child windows, sixels,
|
||||
kitty and iterm2 protocols or chafa.
|
||||
|
||||
This project intends to be a drop-in replacement for the now
|
||||
defunct ueberzug project (https://github.com/seebye/ueberzug).
|
||||
|
||||
Options:
|
||||
* WLROOTS=yes -- enable support for wayland (sway and hyprland only)
|
||||
* WAYLAND=yes -- enable support for wayland (window positioning is
|
||||
correct only for sway and hyprland)
|
||||
|
||||
NOTE: Do not install at the same time with "ueberzug" package!
|
||||
Both provide /usr/bin/ueberzug.
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
ueberzugpp: ueberzugpp (drop in replacement for ueberzug written in C++)
|
||||
ueberzugpp:
|
||||
ueberzugpp: Ueberzug++ is a command line utility written in C++ which allows to
|
||||
ueberzugpp: draw images on terminals by using X11 child windows, sixels or the
|
||||
ueberzugpp: kitty image protocol.
|
||||
ueberzugpp: draw images on terminals by using X11/wayland child windows, sixels,
|
||||
ueberzugpp: kitty and iterm2 protocols or chafa.
|
||||
ueberzugpp:
|
||||
ueberzugpp: This project intends to be a drop-in replacement for the now
|
||||
ueberzugpp: defunct ueberzug project.
|
||||
|
|
|
@ -25,12 +25,12 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=ueberzugpp
|
||||
VERSION=${VERSION:-2.8.6}
|
||||
VERSION=${VERSION:-2.8.8}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
WLROOTS=${WLROOTS:-no}
|
||||
WAYLAND=${WAYLAND:-no}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
|
@ -51,19 +51,14 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
elif [ "$ARCH" = "aarch64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -81,9 +76,9 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
with_wlroots=()
|
||||
if [ "$WLROOTS" = "yes" ]; then
|
||||
with_wlroots=( -DENABLE_WLROOTS=ON )
|
||||
with_wayland=()
|
||||
if [ "$WAYLAND" = "yes" ]; then
|
||||
with_wayland=( -DENABLE_WAYLAND=ON )
|
||||
fi
|
||||
|
||||
mkdir -p build
|
||||
|
@ -91,13 +86,17 @@ cd build
|
|||
cmake \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_MANDIR=/usr/man \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
"${with_wlroots[@]}" \
|
||||
"${with_wayland[@]}" \
|
||||
..
|
||||
make
|
||||
make install/strip DESTDIR=$PKG
|
||||
cd ..
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
LICENSE README.md \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="ueberzugpp"
|
||||
VERSION="2.8.6"
|
||||
VERSION="2.8.8"
|
||||
HOMEPAGE="https://github.com/jstkdng/ueberzugpp"
|
||||
DOWNLOAD="https://github.com/jstkdng/ueberzugpp/archive/v2.8.6/ueberzugpp-2.8.6.tar.gz"
|
||||
MD5SUM="1462ce68657c71c7622b024253ee0704"
|
||||
DOWNLOAD="https://github.com/jstkdng/ueberzugpp/archive/v2.8.8/ueberzugpp-2.8.8.tar.gz"
|
||||
MD5SUM="731df88e0349427e20aaf4b89c44e021"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="CLI11 chafa fmt libsixel microsoft-gsl nlohmann_json oneTBB spdlog vips"
|
||||
|
|
Loading…
Reference in a new issue