makedeb
Command line util which allows to display images in combination with X11 written in C++
Viewing /PKGBUILD
.
Click here to go back to the Git tree for ueberzugpp.
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
pkgname=ueberzugpp
pkgver=2.9.6
pkgrel=0
pkgdesc="Command line util which allows to display images in combination with X11 written in C++"
arch=('amd64' 'arm64' 'ppc64el')
url="https://github.com/jstkdng/ueberzugpp"
license=("GPL-3.0-or-later")
# dependencies not fully tested
makedepends=("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")
# if omitted, need to also remove the corresponding compile option
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")
# not tested
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=("${pkgname}-v${pkgver}.tar.gz::https://github.com/jstkdng/${pkgname}/archive/v${pkgver}.tar.gz")
b2sums=('86d29724ff768536bef2385d456d61509db58c8e83fe0c9711684f86b70e1e45d1d1bb7b970a036c408f575e8d31659b336111cfcc0dc39f7867010e56d9e79b')
provides=("ueberzug")
conflicts=("ueberzug" "ueberzugpp-git")
build() {
cmake -B "build-$pkgver" -S "$pkgname-$pkgver" \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DENABLE_TURBOBASE64=ON \
-DENABLE_WAYLAND=ON \
-DENABLE_XCB_ERRORS=OFF \
-DENABLE_OPENGL=ON \
-Wno-dev \
#-DFETCHCONTENT_FULLY_DISCONNECTED=ON
cmake --build "build-$pkgver" -j "$(nproc)"
}
package() {
DESTDIR="$pkgdir" cmake --install "build-$pkgver"
install -Dm644 "$pkgname-$pkgver/README.md" "$pkgdir/usr/share/doc/$pkgname/readme"
install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/doc/$pkgname/license"
}
# vim:set ts=2 sw=2 et: