ocs-url-9999.ebuild 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright 1999-2021 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit qmake-utils xdg
  5. DESCRIPTION="A program enabling web-installation of items via OpenCollaborationServices"
  6. HOMEPAGE="https://opendesktop.org/p/1136805"
  7. if [[ ${PV} == 9999 ]]; then
  8. inherit git-r3
  9. SRC_URI=""
  10. KEYWORDS=""
  11. EGIT_REPO_URI="https://git.opendesktop.org/dfn2/${PN}.git"
  12. else
  13. SRC_URI="https://git.opendesktop.org/akiraohgaki/${PN}/-/archive/release-${PV}/${PN}-release-${PV}.tar.bz2"
  14. KEYWORDS="~amd64 ~arm ~arm64 ~x86"
  15. S="${WORKDIR}/${PN}-release-${PV}"
  16. fi
  17. LICENSE="GPL-3+"
  18. SLOT="0"
  19. IUSE=""
  20. DEPEND="
  21. >=dev-qt/qtcore-5.2.0:5
  22. >=dev-qt/qtdeclarative-5.2.0:5
  23. >=dev-qt/qtquickcontrols-5.2.0:5
  24. >=dev-qt/qtsvg-5.2.0:5
  25. "
  26. RDEPEND="${DEPEND}"
  27. src_unpack() {
  28. git-r3_src_unpack
  29. unset EGIT_BRANCH EGIT_COMMIT
  30. EGIT_REPO_URI=https://github.com/akiraohgaki/qtil.git
  31. EGIT_CHECKOUT_DIR="${S}/lib/qtil"
  32. git-r3_src_unpack
  33. }
  34. src_prepare(){
  35. ./scripts/prepare || die
  36. default_src_prepare
  37. }
  38. src_configure(){
  39. eqmake5 PREFIX="/usr"
  40. }
  41. src_install(){
  42. INSTALL_ROOT="${D}" default_src_install
  43. }
  44. pkg_postinst(){
  45. xdg_pkg_postinst
  46. elog "Thanks for installing ocs-url."
  47. elog "You can install packages from any page from"
  48. elog "https://www.opendesktop.org or related ones."
  49. elog "Just click on \"Install\", and then open the ocs://"
  50. elog "url provided by every package."
  51. }