blob: d9bd21363ff20219a963cd6e5bc74cea25c5f02b (
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
105
106
107
108
109
110
111
|
# Maintainer:
# Contributor: Mitch Bigelow <mitch.bigelow at gmail.com>
# Contributer: Steven Honeyman <stevenhoneyman at gmail com>
_pkgname="geeqie"
pkgname="$_pkgname-git"
pkgver=2.1.r260.gf1c1ccb9
pkgrel=1
pkgdesc='Lightweight image viewer'
url="https://github.com/BestImageViewer/geeqie"
license=('GPL-2.0-or-later')
arch=('x86_64')
depends=(
clutter
clutter-gtk
djvulibre
exiv2
ffmpegthumbnailer
gspell
gtk3
hicolor-icon-theme
libarchive
libchamplain
libjxl.so
libraw
lua
openjpeg2
poppler-glib
#webp-pixbuf-loader
## implicit
#bash
#cairo
#gcc-libs
#gdk-pixbuf2
#glib2
#glibc
#lcms2
#libheif
#libjpeg-turbo
#libtiff
#pango
)
makedepends=(
doxygen
evince
fbida
gawk
graphviz
imagemagick
intltool
librsvg
libwmf
meson
pandoc-cli
perl-image-exiftool
python
vim
yelp-tools
)
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'
'libwebp: for WebP image format'
'perl-image-exiftool: for the jpeg extraction plugin'
)
provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")
_pkgsrc="$_pkgname"
source+=("$_pkgname"::"git+$url.git")
sha256sums+=('SKIP')
pkgver() {
cd "$_pkgsrc"
_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=8 HEAD)
printf '%s.r%s.g%s' "${_version#v}" "${_revision:?}" "${_hash:?}"
}
build() {
local _meson_options=(
## not working
#-Dgtk4=enabled
#-Dwebp-pixbuf-loader=enabled
-Dcms=enabled
-Ddjvu=enabled
-Dexiv2=enabled
-Dheif=enabled
-Dj2k=enabled
-Djpeg=enabled
-Djpegxl=enabled
-Dlibraw=enabled
-Dtiff=enabled
)
arch-meson "$_pkgsrc" build "${_meson_options[@]}"
meson compile -C build
}
package(){
DESTDIR="$pkgdir" meson install -C build
}
|