aports/testing/gnome-user-share/APKBUILD

45 lines
1 KiB
Text

# Contributor: fossdd <fossdd@pwned.life>
maintainer="fossdd <fossdd@pwned.life>"
pkgname=gnome-user-share
pkgver=48.0
pkgrel=0
pkgdesc="Easy to use user-level file sharing for GNOME"
url="https://gitlab.gnome.org/GNOME/gnome-user-share"
arch="all"
license="GPL-2.0-or-later"
depends="
apache2
apache2-webdav
mod_dnssd
"
makedepends="
cargo
glib-dev
meson
"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-user-share/${pkgver%.*}/gnome-user-share-$pkgver.tar.xz"
options="!check" # no tests
build() {
abuild-meson \
. output \
-Dhttpd=/usr/sbin/httpd \
-Dmodules_path=/usr/lib/apache2
meson compile -C output
}
check() {
meson test --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
# We don't ship systemd
rm -r "$pkgdir"/usr/lib/systemd
}
sha512sums="
1a23ebbdf0942d0742dca2745b481ae22801d94a8ee39dcf1606daf4fb29dce9b6122e0d2ec2a4dd25d8e079f7ec8a132494124654ab0f6cdead85c472edb4a3 gnome-user-share-48.0.tar.xz
"