Package Details: sdl2_sound-hg 1.0.3.r275.85186703b413-1

Git Clone URL: https://aur.archlinux.org/sdl2_sound-hg.git (read-only, click to copy)
Package Base: sdl2_sound-hg
Description: A library to decode several popular sound file formats (Version 2, development version)
Upstream URL: http://icculus.org/SDL_sound/
Keywords: flac media midi mod mp3 ogg wav
Licenses: zlib
Conflicts: sdl2_sound
Provides: sdl2_sound
Submitter: carstene1ns
Maintainer: carstene1ns
Last Packager: carstene1ns
Votes: 2
Popularity: 0.004913
First Submitted: 2018-07-25 19:46
Last Updated: 2021-06-16 23:16

Latest Comments

Atomisirsi commented on 2021-04-14 16:34

I have applied the following patch to the PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 90bdf26..fc6bdb5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
 # Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG

 pkgname=sdl2_sound-hg
-pkgver=1.0.3.r105.9262f9205898
+_pkgver=2.0.0
+pkgver=2.0.0.r815.7cc6ea6cb446
 pkgrel=1
 pkgdesc="A library to decode several popular sound file formats (Version 2, development version)"
 arch=('i686' 'x86_64')
@@ -17,18 +18,12 @@ md5sums=('SKIP')
 pkgver() {
   cd ${pkgname%-*}

-  _lasttag=$(hg tags -q | sort -r | grep release- | head -n1)
-  _commits=$(hg log --template "{node}\n" -r $_lasttag:tip | wc -l) 
-  _hash=$(hg identify -i | tr -cd [:alnum:])
-  printf "%s.r%s.%s" "${_lasttag/release-}" "$_commits" "$_hash"
+  printf "%s.r%s.%s" "${_pkgver}" "$(hg identify -n)" "$(hg identify -i)"
 }

 prepare() {
   rm -rf build
   mkdir build
-   
-  # fixup an oversight (wrong path)
-  sed 's|FILES SDL_sound.h|FILES src/SDL_sound.h|' -i ${pkgname%-*}/CMakeLists.txt
 }

 build() {

Atomisirsi commented on 2020-12-28 10:32

With the latest changes (sdl2_sound-hg-1.0.3.r205.997e90562b35), the sed-fixup in prepare() is no longer required. It is still working, though.

ksv1986 commented on 2019-06-30 17:52

--- PKGBUILD.old        2019-06-30 20:51:21.559942987 +0300
+++ PKGBUILD    2019-06-30 20:46:33.239944001 +0300
@@ -28,13 +28,14 @@
   mkdir build

   # fixup an oversight (wrong path)
-  sed 's|FILES SDL_sound.h|FILES src/SDL_sound.h|' -i ${pkgname%-*}/CMakeLists.txt
+  sed 's|FILES SDL_sound.h DESTINATION include|FILES src/SDL_sound.h DESTINATION include/SDL2|' -i ${pkgname%-*}/CMakeLists.txt
 }

 build() {
   cd build

   cmake ../${pkgname%-*} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
+    -DSDLSOUND_BUILD_TEST=FALSE -DSDLSOUND_BUILD_STATIC=FALSE \
     -DSDL2_INCLUDE_DIRS=/usr/include/SDL2 -DSDL2_LIBRARIES=/usr/lib/libSDL2.so
   make
 }

sl1pkn07 commented on 2019-03-16 21:25

seems conficts with sdl_sound

/usr/bin/playsound

is possible rename this to playsound_sdl2 for example?

also, the header can be install into subdirectory? like usr/include/SDL2

greetings