# Maintainer: Mark Wagie # Contributor: Kyle Laker pkgname=warpinator-git _desktop_id=org.x.Warpinator pkgver=1.8.1.r0.gce45bbde pkgrel=1 pkgdesc="Share files across the LAN" arch=('any') url="https://github.com/linuxmint/warpinator" license=('GPL-3.0-or-later') depends=( 'gtk3' 'libnm' 'python-cairo' 'python-cryptography' 'python-gobject' 'python-grpcio' 'python-landlock' 'python-netifaces' 'python-packaging' 'python-protobuf' 'python-pynacl' 'python-qrcode' 'python-setproctitle' 'python-setuptools' 'python-zeroconf' 'python-xapp' 'xapps' ) makedepends=('git' 'meson' 'polkit') checkdepends=('appstream') optdepends=('ufw: Configure firewall rules') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=('git+https://github.com/linuxmint/warpinator.git') sha256sums=('SKIP') pkgver() { cd "${pkgname%-git}" git describe --long --tags --exclude master* | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "${pkgname%-git}" # Fix hard-coded libexec dir find . -type f -exec sed -i 's/libexec/lib/g' {} \; find . -type f -exec sed -i 's/@libexecdir@/@libdir@/g' {} \; } build() { arch-meson "${pkgname%-git}" build \ -Dbundle-zeroconf=false \ -Dbundle-grpc=false \ -Dbundle-landlock=false meson compile -C build } check() { desktop-file-validate "build/data/${_desktop_id}.desktop" desktop-file-validate "${pkgname%-git}/data/${pkgname%-git}-autostart.desktop" appstreamcli validate --no-net "build/data/${_desktop_id}.appdata.xml" || : } package() { meson install -C build --destdir "$pkgdir" }