Package Details: vipsdisp-git 2.4.1+3.g1f28388-1

Git Clone URL: https://aur.archlinux.org/vipsdisp-git.git (read-only, click to copy)
Package Base: vipsdisp-git
Description: displays an image with libvips and gtk+4; can display huge images quickly and without using much memory; supports many scientific and technical image formats.
Upstream URL: https://github.com/jcupitt/vipsdisp
Licenses: unknown
Provides: vipsdisp
Submitter: npfeiler
Maintainer: npfeiler
Last Packager: npfeiler
Votes: 0
Popularity: 0.000000
First Submitted: 2022-10-03 02:01 (UTC)
Last Updated: 2022-10-03 03:40 (UTC)

Latest Comments

Gallifreyan commented on 2024-06-03 16:08 (UTC) (edited on 2024-06-13 07:06 (UTC) by Gallifreyan)

There are a few discrepancies between the deps here and those suggested by namcap, e.g. cmake isn't needed, while cairo and glib2 apparently are, as well as glib2-devel in makedepeds. I took the liberty of doing some changes to the PKGBUILD:

# Maintainer: norbert.pfeiler ät gmail.com

pkgname=vipsdisp-git
pkgver=3.0.4+14.g2c7047d
pkgrel=1
pkgdesc='Tiny but fast and powerful libvips/GTK+4 image viewer.'
arch=(x86_64)
url='https://github.com/jcupitt/vipsdisp'
license=('MIT')

depends=(
    libvips-git
    glib2
    glibc
    gcc-libs
    gtk4
    cairo
    dconf
    hicolor-icon-theme
    gdk-pixbuf2
)
makedepends=(
    git
    meson
    ninja
    glib2-devel
)
checkdepends=(
    meson
)

provides=('vipsdisp')
conflicts=(
    'vipsdisp'
    'vipsdisp-bin'
)

source=(git+https://github.com/jcupitt/vipsdisp.git)
sha256sums=('SKIP')

pkgver() {
    git -C vipsdisp describe --always --dirty --tags | sed 's/-/+/; s/-/./; s/v//'
}

prepare() {
    meson setup build vipsdisp \
        --prefix /usr \
        --libexecdir=lib \
        --sbindir=bin \
        --sharedstatedir=share \
        --buildtype=release \
        -Dc_link_args='-Wl,-z,relro,-z,now' \
        -Dc_args="-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -ftree-vectorize -fstack-clash-protection -fcf-protection"
}

build() {
    meson configure build --no-pager
    meson compile -C build
}

check() {
    meson test -C build
}

package() {
    meson install -C build --destdir ${pkgdir}

    cd vipsdisp
    install -Dm 644 LICENCE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

The custom -D flags for meson could be omitted, they're only for optimisation and some namcap warnings

Gallifreyan commented on 2024-03-06 11:36 (UTC) (edited on 2024-03-06 12:12 (UTC) by Gallifreyan)

The package currently refuses to build due to it requiring vips >= 8.16, while the main libvips in the repo provides 8.15.1 at the moment. libvips-git builds 8.16, but still has 8.15 in version info in AUR.

Gallifreyan commented on 2024-03-06 09:07 (UTC)

Per the repo, the licence is MIT