# Maintainer: Dani RodrÃguez <dani@danirod.es> pkgname=cartero-git pkgver=v0.1.0.r32.80bef74 pkgrel=1 pkgdesc="Make HTTP requests and test APIs" arch=('x86_64') url="https://github.com/danirod/cartero" license=('GPL-3.0-or-later') depends=('curl' 'glib2' 'gtk4' 'gtksourceview5' 'libadwaita' 'openssl') makedepends=('blueprint-compiler' 'git' 'meson' 'rust') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") options=('!lto') source=("${pkgname%-git}::git+$url.git") sha256sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" } build() { # To disable client side decorations in your build (and enhance the # integration with desktop environments others than GNOME), add the # following flag at the end of the next command invocation: # -Ddecorations=no-csd arch-meson "${pkgname%-git}" build --wipe meson compile -C build } check() { meson test -C build --print-errorlogs || : } package() { meson install -C build --destdir "$pkgdir" }