blob: 5f2b9b5854e832e7932e6af691425a6c3f5c58e1 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at tutantota dot com>
pkgname=paleta
pkgver=0.30
pkgrel=1
pkgdesc="Extract the dominant colors from any image."
arch=('x86_64')
url="https://github.com/nate-xyz/paleta"
license=('GPL3')
depends=('libadwaita')
makedepends=('cargo' 'git' 'meson')
checkdepends=('appstream-glib')
options=('!lto')
_commit=85d754ed5d1e0e8e40dcd19c1914f638f45dbf0d # v0.3.0
source=("git+https://github.com/nate-xyz/paleta.git#commit=$_commit")
sha256sums=('SKIP')
prepare() {
cd "$srcdir/$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$CARCH-unknown-linux-gnu"
}
build() {
export RUSTUP_TOOLCHAIN=stable
arch-meson "$pkgname" build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs || :
}
package () {
meson install -C build --destdir "$pkgdir"
}
|