# Maintainer: exponential _pkgname=ueberzugpp pkgname=ueberzugpp-git pkgver=2.9.1.r154.638e89d pkgrel=1 pkgdesc="Command line util which allows to display images in combination with X11 written in C++" arch=("amd64") url="https://github.com/jstkdng/ueberzugpp" license=("GPL3") # dependencies not fully tested makedepends=("git" "sed" "grep" "cmake" "extra-cmake-modules" "libzmq3-dev" "nlohmann-json3-dev" "libmsgsl-dev" "libtbb-dev" "libvips-dev" "libsixel-dev" "libspdlog-dev" "libfmt-dev" "libchafa-dev" "libssl-dev" "libxcb1-dev" "libxcb-res0-dev" "wayland-protocols") optmakedepends=("libcli11-dev" "libopencv-dev" "libopencv-core-dev" "libopencv-imgcodecs-dev" "libopencv-imgproc-dev" "libopencv-videoio-dev" "libxcb-image0-dev" "libwayland-dev" "libopengl-dev") depends=("libvips42" "libsixel1" "libssl3" "libspdlog1.10" "libzmq5" "libfmt9" "libchafa0" "libtbbmalloc2" "libxcb1" "libxcb-res0") optdepends=("libopencv-core406" "libopencv-imgcodecs406" "libopencv-imgproc406" "libopencv-videoio406" "libxcb-image0" "wayland-protocols" "libwayland-client0" "libopengl0") bullseye_depends=("libvips42" "libsixel1" "libssl1.1" "libspdlog1" "libzmq5" "libfmt7" "libchafa0" "libtbb2" "libxcb1" "libxcb-res0") bullseye_optdepends=("libopencv-core4.5" "libopencv-imgcodecs4.5" "libopencv-imgproc4.5" "libopencv-videoio4.5" "libxcb-image0" "wayland-protocols" "libwayland-client0" "libopengl0") source=("git+https://github.com/jstkdng/ueberzugpp.git") b2sums=("SKIP") provides=("ueberzug" "ueberzugpp") conflicts=("ueberzug" "ueberzugpp") pkgver() { cd "${srcdir}/${_pkgname}" printf "%s.r%s.%s" "$(grep "project(ueberzugpp LANGUAGES CXX C VERSION" CMakeLists.txt | sed 's/project(ueberzugpp LANGUAGES CXX C VERSION //' | sed "s/)//")" "$(git rev-list --count HEAD)" "$(git describe --long --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g')" } build() { cmake -B build -S "$_pkgname" \ -DCMAKE_BUILD_TYPE='None' \ -DCMAKE_INSTALL_PREFIX='/usr' \ -DENABLE_TURBOBASE64=ON \ -DENABLE_WAYLAND=ON \ -DENABLE_XCB_ERRORS=OFF \ -DENABLE_OPENGL=ON \ -Wno-dev cmake --build build -j $(nproc) } package() { DESTDIR="$pkgdir" cmake --install build install -Dm644 "$_pkgname/README.md" "$pkgdir/usr/share/doc/$_pkgname/readme" ln -s /usr/share/common-licenses/GPL-3 "$pkgdir/usr/share/doc/$_pkgname/" } # vim:set ts=2 sw=2 et: