gnu: vdpauinfo: Fetch from git repository.

* gnu/packages/video.scm (vdpauinfo)[source]: Use GIT-FETCH and GIT-FILE-NAME.
[arguments]: Replace the default 'bootstrap phase.
[native-inputs]: Add autoconf & automake.
This commit is contained in:
Tobias Geerinckx-Rice 2020-11-29 14:38:53 +01:00
parent e8d561a4ec
commit f637483afc
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -3136,16 +3136,26 @@ (define-public vdpauinfo
(version "1.0") (version "1.0")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (string-append "https://secure.freedesktop.org/~aplattner/vdpau/" (uri (git-reference
name "-" version ".tar.gz")) (url "https://gitlab.freedesktop.org/vdpau/vdpauinfo")
(commit (string-append "vdpauinfo-" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "0j495axk56dmdzw32dn6qdb1lhd2nff77cpwdia7liwz7p1jli0g"))))
"1i2b0k9h8r0lnxlrkgqzmrjakgaw3f1ygqqwzx8w6676g85rcm20"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'bootstrap
;; ./autogen.sh runs ./configure too soon.
(lambda _
(invoke "autoreconf" "-fiv"))))))
(native-inputs (native-inputs
`(("pkg-config" ,pkg-config) `(("autoconf" ,autoconf)
("libx11" ,libx11))) ("automake" ,automake)
("libx11" ,libx11)
("pkg-config" ,pkg-config)))
(propagated-inputs (propagated-inputs
`(("libvdpau" ,libvdpau))) `(("libvdpau" ,libvdpau)))
(home-page "https://wiki.freedesktop.org/www/Software/VDPAU/") (home-page "https://wiki.freedesktop.org/www/Software/VDPAU/")