summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05c951da363ede201e63374bc2e820e142e9e727 (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
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
# Contributor: Balló György <ballogyor+arch at gmail dot com>

pkgname=delineate
pkgver=0.1.2
pkgrel=1
pkgdesc='View and edit graphs'
arch=(x86_64)
url='https://github.com/SeaDve/Delineate'
license=(GPL-3.0-or-later)
depends=(
  graphene
  glib2
  gdk-pixbuf2
  gtk4
  gtksourceview5
  hicolor-icon-theme
  dconf
  glibc
  gcc-libs
  libadwaita
  webkitgtk-6.0
)
makedepends=(
  git
  meson
  rust
)
options=(!lto)
source=("git+https://github.com/SeaDve/Delineate.git#tag=v$pkgver")
sha256sums=('5ea8a08ee1aeec5078e9a90d909e268a8e90a358024da8c510f5aea77cc19c76')

prepare() {
  cd Delineate

  CARGO_HOME="$srcdir/build/cargo-home" cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
  arch-meson Delineate build

  CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 CARGO_PROFILE_RELEASE_DEBUG=2 CARGO_PROFILE_RELEASE_STRIP=false meson compile -C build
}

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