blob: 83b2b66a92cfed2a7c2ad22985c27633374bb9e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# Maintainer:
# Contributor: Mitch Bigelow <mitch.bigelow at gmail.com>
# Contributer: Steven Honeyman <stevenhoneyman at gmail com>
_pkgname="geeqie"
pkgname="$_pkgname-git"
pkgver=2.5.r187.g6b9adf0
pkgrel=1
pkgdesc='Lightweight image viewer'
url="https://github.com/BestImageViewer/geeqie"
license=('GPL-2.0-or-later')
arch=('x86_64')
depends=(
cfitsio
clutter
clutter-gtk
djvulibre
exiv2
ffmpegthumbnailer
gspell
gtk3
hicolor-icon-theme
libarchive
libchamplain
libheif
libjxl.so
libraw
lua
openexr
openjpeg2
poppler-glib
)
makedepends=(
doxygen
evince
fbida
gawk
glib2-devel
graphviz
imagemagick
intltool
librsvg
libwmf
meson
pandoc-cli
perl-image-exiftool
python
vim
yelp-tools
)
checkdepends=(
shellcheck
xorg-server-xvfb
)
optdepends=(
'evince: for print preview'
'fbida: for jpeg rotation'
'gawk: to use the geo-decode function'
'gphoto2: command-line tools for various (plugin) operations'
'imagemagick: command-line tools for various (plugin) operations'
'librsvg: SVG rendering'
'perl-image-exiftool: for the jpeg extraction plugin'
)
provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")
_pkgsrc="$_pkgname"
source=("$_pkgname"::"git+$url.git")
sha256sums=('SKIP')
prepare() {
# force xwayland
sed -E 's&^Exec=&Exec=env WAYLAND_DISPLAY= &' -i "$_pkgsrc"/org.geeqie.Geeqie.desktop.in
# skip failing tests
sed -E '/[Aa]ncillary.files/s&^&#&' -i "$_pkgsrc"/meson.build
}
pkgver() {
cd "$_pkgsrc"
local _version _revision _hash
_version=$(git tag | grep -Ev '^.*[A-Za-z]{2}.*$' | sort -V | tail -1)
_revision=$(git rev-list --count --cherry-pick $_version...HEAD)
_hash=$(git rev-parse --short=7 HEAD)
printf '%s.r%s.g%s' "${_version#v}" "${_revision:?}" "${_hash:?}"
}
build() {
arch-meson "$_pkgsrc" build
meson compile -C build
}
check() {
meson test -C build
}
package() {
DESTDIR="$pkgdir" meson install -C build
# not useful yet
rm -f "$pkgdir/usr/share/applications"/*cache-maintenance*.desktop
}
|