template 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Template file for 'smplayer'
  2. pkgname=smplayer
  3. version=20.6.0
  4. revision=1
  5. build_style=gnu-makefile
  6. build_helper=qmake
  7. hostmakedepends="qt5-host-tools qt5-tools qt5-script-devel tar"
  8. makedepends="zlib-devel qt5-script-devel qt5-tools-devel"
  9. depends="hicolor-icon-theme desktop-file-utils"
  10. short_desc="Complete front-end for mplayer and mpv"
  11. maintainer="Helmut Pozimski <helmut@pozimski.eu>"
  12. license="GPL-2.0-or-later"
  13. homepage="https://www.smplayer.info"
  14. distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
  15. checksum=be76596b9a0b7079bc41be8f200c1024670bd80ffe9d6ec5f24879519f7ba930
  16. export QT_SELECT=5
  17. # Liberation
  18. # Some code has been taken from:
  19. # https://git.parabola.nu/abslibre.git/tree/libre/smplayer/PKGBUILD
  20. post_patch() {
  21. # fix GNU/Linux name
  22. sed -i 's|Linux|GNU/Linux|' src/smplayer.cpp
  23. }
  24. pre_build() {
  25. sed -i 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' src/smplayer.pro
  26. sed -i 's|PREFIX=/usr/local|PREFIX=/usr|' Makefile
  27. sed -i 's|DOC_PATH=$(PREFIX)/share/doc/packages/smplayer|DOC_PATH=$(PREFIX)/share/doc/smplayer|' Makefile
  28. }
  29. do_build() {
  30. make ${makejobs} CC="$CC" CXX="$CXX" LINK="$CXX" LD="$CXX" CFLAGS_EXTRA="$CFLAGS $LDFLAGS"
  31. }