template 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Template file for 'kio'
  2. pkgname=kio
  3. version=5.74.1
  4. revision=2
  5. build_style=cmake
  6. configure_args="-DBUILD_TESTING=OFF
  7. -DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
  8. hostmakedepends="kcoreaddons extra-cmake-modules kauth gettext
  9. qt5-host-tools qt5-qmake python kdoctools libxml2 kcoreaddons"
  10. makedepends="kdoctools-devel ksolid-devel kbookmarks-devel kjobwidgets-devel
  11. kwallet-devel acl-devel mit-krb5-devel libxslt-devel libxml2-devel"
  12. depends="desktop-file-utils"
  13. short_desc="KDE Network transparent access to files and data"
  14. maintainer="John <me@johnnynator.dev>"
  15. license="LGPL-2.0-or-later"
  16. homepage="https://invent.kde.org/frameworks/kio"
  17. distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
  18. checksum=2f88a383b751194d4f327d3f87f8ea25fe882f8cc5c58a368529d9ab7143a6e7
  19. CXXFLAGS+=" -fpermissive"
  20. pre_build() {
  21. # Commands below are taken and modified (FILESDIR) from `prepare` function of:
  22. # https://git.parabola.nu/abslibre.git/tree/libre/kio/PKGBUILD
  23. # Removing search providers
  24. rm -v src/urifilters/ikws/searchproviders/*.desktop
  25. # Adding DuckDuckGo HTML and DuckDuckGo Lite
  26. # Contributions of other search engines that satisfy pkgdesc are welcome!
  27. cp -v "${FILESDIR}"/duckduckgo_{html,lite}.desktop src/urifilters/ikws/searchproviders
  28. }
  29. kio-devel_package() {
  30. short_desc+=" - development"
  31. depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
  32. pkg_install() {
  33. vmove usr/include
  34. vmove usr/lib/qt5/mkspecs
  35. vmove usr/lib/qt5/plugins/designer
  36. vmove usr/lib/cmake
  37. vmove "usr/lib/*.so"
  38. }
  39. }