template 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Template file for 'nextcloud-client'
  2. pkgname=nextcloud-client
  3. version=3.0.3
  4. revision=1
  5. wrksrc="desktop-${version}"
  6. build_style=cmake
  7. configure_args="-Wno-dev $(vopt_if shibboleth '' '-DNO_SHIBBOLETH=True')
  8. -DNO_WEBENGINE=True"
  9. hostmakedepends="pkg-config"
  10. makedepends="qt5-tools-devel qt5-declarative-devel qt5-webchannel-devel
  11. qt5-location-devel qtkeychain-qt5-devel sqlite-devel libcloudproviders-devel
  12. qt5-quickcontrols2-devel
  13. $(vopt_if dolphin 'extra-cmake-modules kio-devel')
  14. qt5-webkit-devel"
  15. depends="qt5-graphicaleffects"
  16. checkdepends="cmocka-devel"
  17. conf_files="/etc/Nextcloud/sync-exclude.lst"
  18. short_desc="NextCloud Desktop client"
  19. maintainer="yopito <pierre.bourgin@free.fr>"
  20. license="GPL-2.0-or-later"
  21. homepage="https://nextcloud.com/clients/"
  22. distfiles="https://github.com/nextcloud/desktop/archive/v${version}.tar.gz"
  23. checksum=abd021ff06ecb267221a221dbf8b4efd3bd8e418053cc49b6b6faa290717c6d8
  24. build_options="dolphin shibboleth"
  25. desc_option_dolphin="Build KDE dolphin support"
  26. desc_option_shibboleth="Build Shibboleth support (needs Qt5 WebKit)"
  27. build_options_default="dolphin shibboleth"
  28. if [ "$CROSS_BUILD" ]; then
  29. hostmakedepends+=" qt5-qmake qt5-host-tools qt5-tools"
  30. # provides desktoptojson
  31. hostmakedepends+=" $(vopt_if dolphin 'kcoreaddons')"
  32. fi
  33. subpackages="$(vopt_if dolphin 'nextcloud-client-dolphin') nextcloud-client-devel"
  34. if [ "$XBPS_CHECK_PKGS" ]; then
  35. configure_args+=" -DUNIT_TESTING=1"
  36. # argp.h is used only by testing and is not a requirement.
  37. # since usable (linking fails), let's disable it instead
  38. case "$XBPS_TARGET_MACHINE" in
  39. #*-musl) export LDFLAGS=-largp;;
  40. *-musl) configure_args+=" -DHAVE_ARGP_H=0";;
  41. esac
  42. fi
  43. nextcloud-client-dolphin_package() {
  44. short_desc+=" - KDE dolphin integration"
  45. depends="nextcloud-client>=${version}_${revision}"
  46. pkg_install() {
  47. vmove usr/lib/libnextclouddolphinpluginhelper.so
  48. vmove usr/lib/qt5
  49. vmove usr/share/kservices5
  50. }
  51. }
  52. nextcloud-client-devel_package() {
  53. depends="nextcloud-client>=${version}_${revision}"
  54. short_desc+=" - development files"
  55. pkg_install() {
  56. vmove usr/include
  57. vmove usr/lib/libnextcloudsync.so
  58. vmove "usr/lib/nextcloud/*.so"
  59. }
  60. }