jobextra/viewnior/PKGBUILD
2023-08-19 02:38:52 +03:00

49 lines
1.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=viewnior
pkgver=1.8
pkgrel=05
pkgdesc="A simple, fast and elegant image viewer program"
url="https://siyanpanayotov.com/project/viewnior"
depends=('gtk2' 'exiv2')
makedepends=('meson')
optdepends=('webp-pixbuf-loader')
source=(https://github.com/hellosiyan/Viewnior/archive/$pkgname-$pkgver.tar.gz
exiv2-0.28.patch)
prepare() {
# Fix build with exiv2 0.28
patch -d Viewnior-viewnior-$pkgver -p1 < exiv2-0.28.patch
}
build() {
cd Viewnior-viewnior-$pkgver
arch-meson build
ninja -C build
}
check() {
cd Viewnior-viewnior-$pkgver
meson test -C build
}
package() {
cd Viewnior-viewnior-$pkgver
DESTDIR="$pkgdir" meson install -C build
}
#---- arch license gpg-key and sha256sums ----
arch=(x86_64)
license=(GPL3)
sha256sums=(b9319171ebca23929e6ea8039c194b1595d92e764db5e3890836fb5c36e233b0 # viewnior-1.8.tar.gz
307550f68decc1d2bd67bb0c5ec52205c654446fcd06c6ea14973406790535c3) # exiv2-0.28.patch
## 8a02fb5fcd24a44be26907d61a302f23f451e8af163312f122ccaad75ae9b29b viewnior-1.8-05-x86_64.pkg.tar.lz