| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 |
|
| 22 | (define-module (gnu packages libcanberra)
|
| 23 | #:use-module ((guix licenses)
|
| 24 | #:select (lgpl2.1+ gpl2 gpl2+ cc-by-sa4.0 cc-by3.0))
|
| 25 | #:use-module (gnu packages)
|
| 26 | #:use-module (guix packages)
|
| 27 | #:use-module (guix download)
|
| 28 | #:use-module (guix build-system gnu)
|
| 29 | #:use-module (guix build-system pyproject)
|
| 30 | #:use-module (gnu packages autotools)
|
| 31 | #:use-module (gnu packages gstreamer)
|
| 32 | #:use-module (gnu packages gtk)
|
| 33 | #:use-module (gnu packages glib)
|
| 34 | #:use-module (gnu packages linux)
|
| 35 | #:use-module (gnu packages pulseaudio)
|
| 36 | #:use-module (gnu packages pkg-config)
|
| 37 | #:use-module (gnu packages python-build)
|
| 38 | #:use-module (gnu packages xiph))
|
| 39 |
|
| 40 | (define-public libcanberra
|
| 41 | (package
|
| 42 | (name "libcanberra")
|
| 43 | (version "0.30")
|
| 44 | (source
|
| 45 | (origin
|
| 46 | (method url-fetch)
|
| 47 |
|
| 48 | |
| 49 | (uri (string-append
|
| 50 | "http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-"
|
| 51 | version ".tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/libcanberra-"
|
| 52 | version ".tar.xz"))
|
| 53 | (sha256
|
| 54 | (base32
|
| 55 | "0wps39h8rx2b00vyvkia5j40fkak3dpipp1kzilqla0cgvk73dn2"))
|
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | (patch-flags '("-p0"))
|
| 68 | (patches
|
| 69 | (search-patches "libcanberra-sound-theme-freedesktop.patch"
|
| 70 | "libcanberra-wayland-crash.patch"))))
|
| 71 | (build-system gnu-build-system)
|
| 72 | (arguments
|
| 73 | `(#:phases
|
| 74 | (modify-phases %standard-phases
|
| 75 | (add-before 'build 'patch-default-sounds-directory
|
| 76 | (lambda* (#:key inputs #:allow-other-keys)
|
| 77 | (substitute* "src/sound-theme-spec.c"
|
| 78 | (("@SOUND_THEME_DIRECTORY@")
|
| 79 | (dirname
|
| 80 | (dirname
|
| 81 | (search-input-directory inputs
|
| 82 | "share/sounds/freedesktop"))))))))))
|
| 83 | (inputs
|
| 84 | (list alsa-lib
|
| 85 | gstreamer
|
| 86 | gtk+
|
| 87 | libltdl
|
| 88 | libvorbis
|
| 89 | pulseaudio
|
| 90 | eudev
|
| 91 | sound-theme-freedesktop))
|
| 92 | (native-inputs
|
| 93 | (list pkg-config))
|
| 94 | (home-page "https://0pointer.de/lennart/projects/libcanberra/")
|
| 95 | (synopsis
|
| 96 | "Implementation of the XDG Sound Theme and Name Specifications")
|
| 97 | (description
|
| 98 | "Libcanberra is an implementation of the XDG Sound Theme and Name
|
| 99 | Specifications, for generating event sounds on free desktops, such as
|
| 100 | GNOME. It comes with several backends (ALSA, PulseAudio, OSS, GStreamer,
|
| 101 | null) and is designed to be portable.")
|
| 102 | (license lgpl2.1+)))
|
| 103 |
|
| 104 | (define-public sound-theme-freedesktop
|
| 105 | (package
|
| 106 | (name "sound-theme-freedesktop")
|
| 107 | (version "0.8")
|
| 108 | (source (origin
|
| 109 | (method url-fetch)
|
| 110 | (uri (string-append "https://people.freedesktop.org/~mccann/dist/"
|
| 111 | name "-" version ".tar.bz2"))
|
| 112 | (sha256
|
| 113 | (base32
|
| 114 | "054abv4gmfk9maw93fis0bf605rc56dah7ys5plc4pphxqh8nlfb"))))
|
| 115 | (build-system gnu-build-system)
|
| 116 | (native-inputs (list intltool))
|
| 117 | (synopsis "Audio samples for use as a desktop sound theme")
|
| 118 | (description
|
| 119 | "This package provides audio samples that can be used by libcanberra as
|
| 120 | sounds for various system events.")
|
| 121 |
|
| 122 | |
| 123 | (license (list cc-by-sa4.0 cc-by3.0 gpl2 gpl2+))
|
| 124 |
|
| 125 | (home-page "https://www.freedesktop.org/wiki/Specifications/sound-theme-spec/")))
|
| 126 |
|
| 127 | (define-public python-pycanberra
|
| 128 | (package
|
| 129 | (name "python-pycanberra")
|
| 130 | (version "0.1.1")
|
| 131 | (source
|
| 132 | (origin
|
| 133 | (method url-fetch)
|
| 134 | (uri (string-append "http://ftp.n0.is/pub/releases/"
|
| 135 | "pycanberra-" version ".tar.xz"))
|
| 136 | (sha256
|
| 137 | (base32 "16jjf8fcgaprmz6jacsxrh17l1ad891fns38bxv49lg3s3mn1nj2"))))
|
| 138 | (build-system pyproject-build-system)
|
| 139 | (arguments (list #:tests? #f)) |
| 140 | (native-inputs (list python-setuptools))
|
| 141 | (propagated-inputs (list libcanberra))
|
| 142 | (home-page "https://github.com/totdb/pycanberra")
|
| 143 | (synopsis "Ctypes wrapper for the libcanberra API")
|
| 144 | (description
|
| 145 | "Pycanberra is a basic Python wrapper for libcanberra.")
|
| 146 | (license lgpl2.1+)))
|