summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a40b5d314b84a43b9be21c652cdf9f14141b0b74 (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
# Maintainer: linfeng <2844126834@qq.com>
_pkgname=loupe
pkgname=loupe-git-forked
pkgver=50.beta.r31.gacff6a3
pkgrel=1
pkgdesc="simple image viewer for GNOME"
arch=(x86_64 aarch64)
url="https://github.com/FengZhongShaoNian/loupe"
license=('GPL-3.0-or-later')
depends=(
  bubblewrap
  cairo
  dconf
  fontconfig
  glib2
  glibc
  glycin
  graphene
  gtk4
  hicolor-icon-theme
  lcms2
  libadwaita
  libgcc
  libgweather-4
  libseccomp
)
makedepends=(
  git
  itstool
  meson
  rust
)
provides=(loupe)
conflicts=(
  loupe 
  loupe-git
)
source=("git+$url.git")
b2sums=('SKIP')

# Use LTO
export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1

# Use debug
export CARGO_PROFILE_RELEASE_DEBUG=2

pkgver() {
  cd $_pkgname
  git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd $_pkgname
}

build() {
  arch-meson $_pkgname build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  meson install -C build --destdir "$pkgdir" --no-rebuild
}