Guest User

Untitled

a guest
Oct 31st, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 2.76 KB | None | 0 0
  1. (define-public smplayer
  2.   (package
  3.     (name "smplayer")
  4.     (version "21.10.0")
  5.     (source (origin
  6.               (method url-fetch)
  7.               (uri (string-append
  8.                     "mirror://sourceforge/smplayer/SMPlayer/" version
  9.                     "/smplayer-" version ".tar.bz2"))
  10.               (sha256
  11.                (base32
  12.                 "12nvcl0cfix1xay9hfi7856vg4lpv8y5b0a22212bsjbvl5g22rc"))))
  13.     (build-system gnu-build-system)
  14.     (native-inputs
  15.      `(("qttools" ,qttools)))
  16.     (inputs
  17.      `(("qtbase" ,qtbase-5)
  18.        ("zlib" ,zlib)
  19.        ("mplayer" ,mplayer)))
  20.     (arguments
  21.      `(#:modules (,@%gnu-build-system-modules
  22.                   (srfi srfi-26))
  23.        #:tests? #false             ; no tests
  24.        #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
  25.                           (string-append "CC=" ,(cc-for-target))
  26.                           ;; A KLUDGE to turn off invoking lrelease on the
  27.                           ;; project for now, because it fails consistently
  28.                           ;; with "WARNING: Could not find qmake spec
  29.                           ;; 'default'". See below.
  30.                           "LRELEASE=true")
  31.        #:phases
  32.        (modify-phases %standard-phases
  33.          (delete 'configure)
  34.          ;; Due to the above, we must run lrelease separately on each .ts file
  35.          ;; (as opposed to running `lrelease-pro smplayer.pro` for the entire
  36.          ;; project, as the Makefile does normally without the above kludge).
  37.          (add-after 'build 'compile-ts-files
  38.            (lambda _
  39.              (for-each (cut invoke "lrelease" <>)
  40.                        (find-files "./" "\\.ts$")))))))
  41.     (home-page "https://www.smplayer.info")
  42.     (synopsis "Complete front-end for MPlayer, a media player")
  43.     (description "SMPlayer is a free media player for Windows and Linux
  44. with built-in codecs that can play virtually all video and audio formats.
  45. It doesn't need any external codecs. Just install SMPlayer and you'll be
  46. able to play all formats without the hassle to find and install codec packs.
  47.  
  48. One of the most interesting features of SMPlayer: it remembers the
  49. settings of all files you play. So you start to watch a movie but you have
  50. to leave... don't worry, when you open that movie again it will be resumed
  51. at the same point you left it, and with the same settings: audio track,
  52. subtitles, volume...
  53.  
  54. SMPlayer is a graphical user interface (GUI) for the award-winning
  55. MPlayer, which is capable of playing almost all known video and audio
  56. formats. But apart from providing access for the most common and useful
  57. options of MPlayer, SMPlayer adds other interesting features like the
  58. possibility to play Youtube videos or download subtitles.")
  59.     (license license:gpl3+)))
  60.  
Advertisement
Add Comment
Please, Sign In to add comment