blob: 8a1672964c37d229c77e58630fc4bdfeb797d486 (
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
|
# Maintainer: Nate Simon <njsimon10@gmail.com>
pkgname=xviewer-git
_pkgbasename=xviewer
pkgver=3.4.4.r0.gc201d9e
pkgrel=1
pkgdesc="A simple and easy to use image viewer. X-Apps Project (git version)."
arch=('i686' 'x86_64' 'armv7h')
license=('GPL')
depends=('xapp' 'gtk3' 'cinnamon-desktop' 'libpeas' 'libexif' 'libjpeg-turbo'
'exempi')
makedepends=(
'git' 'gobject-introspection' 'librsvg' 'meson' 'itstool'
'gtk-doc'
'glib2-devel'
)
optdepends=('xviewer-plugins-git: Extra plugins'
'librsvg: for scaling svg images'
'webp-pixbuf-loader: webp image support'
'libheif: Load .heif, .heic, and .avif'
'libavif: Load .avif'
'yelp: View xviewer help and documentation from the app'
)
provides=(${_pkgbasename})
conflicts=(${_pkgbasename})
url='https://github.com/linuxmint/xviewer'
source=("${pkgname}::git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd ${srcdir}/${pkgname}
git describe --long --tags --exclude 'master*' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
mkdir -p "${srcdir}"/${pkgname}/build
cd "${srcdir}"/${pkgname}/build
meson --prefix=/usr \
--libexecdir=lib/${pkgname} \
--buildtype=plain \
..
ninja
}
package(){
cd "${srcdir}"/${pkgname}/build
DESTDIR="$pkgdir/" ninja install
}
|