aports/testing/rnote/APKBUILD
2023-11-12 12:59:58 +00:00

58 lines
1.2 KiB
Plaintext

# Contributor: Jakob Meier <comcloudway@ccw.icu>
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
pkgname=rnote
pkgver=0.9.1
pkgrel=0
pkgdesc="Sketch and take handwritten notes."
url="https://rnote.flxzt.net/"
# ppc64le: vendored abseil, not possible to override to system
# armhf: doesn't build
# s390x: mainframe
arch="all !armhf !s390x !ppc64le"
license="GPL-3.0-or-later"
makedepends="
alsa-lib-dev
appstream-glib-dev
appstream-dev
cargo
clang-dev
cmake
desktop-file-utils
gtk4.0-dev
libadwaita-dev
meson
poppler-dev
"
subpackages="$pkgname-lang $pkgname-cli:cli"
source="
https://github.com/flxzt/rnote/archive/refs/tags/v$pkgver/rnote-$pkgver.tar.gz
"
options="net"
export CARGO_PROFILE_RELEASE_LTO=thin
build() {
abuild-meson \
. output
meson configure -Dcli=true output
meson compile -C output
}
check() {
meson test --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
cli() {
pkgdesc="Convert files to and from .rnote"
amove usr/bin/rnote-cli
}
sha512sums="
1e097cd3a9dd3f1612dd675f8c5ac61a40003dbb6e0d140bec10d67270e25be4ef4bca0f0dff5871272ed84029532c11177818a867540eda17ab5ec936d61b5b rnote-0.9.1.tar.gz
"