blob: caa72cbefc64d67f0ad1adda15b672463d3333ed (
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
|
# Maintainer: shtrophic <aur at shtrophic dot net>
pkgname=vv
pkgver=2.0
pkgrel=2
license=(BSD-3-Clause)
url="https://github.com/wolfpld/vv"
pkgdesc="Terminal image viewer"
arch=(x86_64)
conflicts=(vv-bin) # same name, different program!
makedepends=(git cmake)
depends=(
cairo
libheif
libjpeg
libjxl
libpng
libraw
librsvg
libsixel
libtiff4
libwebp
openexr
openmp
zlib
)
optdepends=(
poppler-glib
)
source=(
"$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
"base64::git+https://github.com/aklomp/base64.git#tag=v0.5.2"
"tracy::git+https://github.com/wolfpld/tracy.git" # master
"stb::git+https://github.com/nothings/stb.git#tag=2e2bef463a5b53ddf8bb788e25da6b8506314c08"
)
sha256sums=('682387efbdcab06ae570b55e0e9bf3c8a09887567b1184476d7e1f76d1b53933'
'c2139ed6cc36779410ebf291df9f231145ed1c8ee0f16b6046331daa686058b7'
'SKIP'
'e2e76a8585a9b52cd0d774a4637a55f0ab9edb3ba10f852f69e1243134c17b90')
build() {
cmake -B build -S "$srcdir/$pkgname-$pkgver" \
-DCPM_LOCAL_PACKAGES_ONLY=ON \
-DCPM_tracy_SOURCE="$srcdir/tracy" \
-DCPM_stb_SOURCE="$srcdir/stb" \
-DCPM_base64_SOURCE="$srcdir/base64" \
-DBASE64_WITH_OpenMP=ON \
-DTRACY_ENABLE=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev
cmake --build build
}
package() {
install -Dm 755 "$srcdir/build/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm 644 "$srcdir/$pkgname-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
}
|