wf-recorder-9999.ebuild 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 2020-2022 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit meson
  5. DESCRIPTION="Screen recorder for wlroots-based compositors"
  6. HOMEPAGE="https://github.com/ammen99/wf-recorder"
  7. if [[ ${PV} == 9999 ]]; then
  8. inherit git-r3
  9. EGIT_REPO_URI="https://github.com/ammen99/wf-recorder.git"
  10. else
  11. COMMIT="a40f9ad9f09fa142092c67e19f8679246b7ad8af"
  12. SRC_URI="https://github.com/ammen99/wf-recorder/archive/${COMMIT}.tar.gz -> ${P}-${COMMIT}.tar.gz"
  13. KEYWORDS="~amd64 ~arm ~arm64 ~x86"
  14. S=${WORKDIR}/${PN}-${COMMIT}
  15. fi
  16. IUSE="debug pulseaudio"
  17. LICENSE="MIT"
  18. SLOT="0"
  19. DEPEND="
  20. dev-libs/wayland
  21. pulseaudio? ( media-sound/pulseaudio )
  22. media-video/ffmpeg[pulseaudio?,x264]
  23. "
  24. RDEPEND="${DEPEND}"
  25. BDEPEND="
  26. virtual/pkgconfig
  27. dev-libs/wayland-protocols
  28. "
  29. RESTRICT="mirror"
  30. src_configure() {
  31. local emesonargs=(
  32. --buildtype $(usex debug debug release)
  33. --prefix='/usr'
  34. -Ddefault_codec='libx264'
  35. # -Ddefault_audio_codec='flac'
  36. $(meson_feature pulseaudio pulse)
  37. )
  38. meson_src_configure
  39. }