Package Details: sbagen 1.4.5-6

Git Clone URL: https://aur.archlinux.org/sbagen.git (read-only)
Package Base: sbagen
Description: A binural brainwave generator
Upstream URL: http://uazu.net/sbagen
Licenses: GPL
Submitter: prurigro
Maintainer: prurigro
Last Packager: prurigro
Votes: 25
Popularity: 1.271156
First Submitted: 2008-04-27 23:34
Last Updated: 2016-03-02 04:13

Latest Comments

mindsystem commented on 2014-07-21 17:32

Simply adding 'gcc-multilib' and 'lib32-glibc' to the PKGBUILD breaks things for 32bit users. See https://wiki.archlinux.org/index.php/Pkgbuild#arch for details on adding 64bit specific dependencies.
What should be done is something like this:
depends=('bash' 'perl')
makedepends=('libmad' 'libvorbis')
if test "$CARCH" == x86_64; then
depends+=('lib32-glibc')
makedepends+=('gcc-multilib')
fi

prurigro commented on 2014-07-20 16:39

@The-Compiler: Thanks for the feedback! I think the issue is that you need gcc-multilib (and not simply gcc) to properly build it, and I'm guessing it's the binaural-analysis tools if this wasn't the case before (if you didn't want to have 32bit on your system). In any case, let me know if you still aren't able to build sbagen after satisfying the new dependencies. Cheers

The-Compiler commented on 2014-07-20 14:36

This doesn't build anymore (on 64bit) after the last upgrade:

http://paste.the-compiler.org/view/a3ac080b

prurigro commented on 2014-07-17 12:22

This latest release:
* updates the PKGBUILD to the current standards (complies with namcap)
* fixes dependency issues
* fixes ogg support
* patches the examples that use river*.ogg so you don't need to be in the same directory as the ogg files to play them
* fixes an issue with the default build leaves sbagen with an executable stack
* removes the dependency on aoss and instead expects the "snd-pcm-oss" module to be loaded and any users running sbagen in the "audio" group
* adds the binaural analysis tools pack
* adds the arm architectures (though I've only tested on armv7h)

prurigro commented on 2013-09-27 07:21

The package has been updated! Changes include:
1. libmad and libvorbis have been added to the deps thanks to @fergie for pointing out the problem and @The-Compiler for the answer!
2. Since 99% of Arch users are now using Alsa (or something like Pulse on top of Alsa), and not OSS, I've included alsa-oss as a dep, and the package now installs three commands:
sbagen-oss: The unaltered program using OSS, previously installed as 'sbagen'
sbagen-alsa: A new script that works just like sbagen-oss except using Alsa
sbagen: A symbolic link to sbagen-alsa
3. The PKGBUILD has been updated to the new standards (I've been slowly making my way through the packages I maintain and am finally getting close to complete!)
4. The sbagen.install file now runs on installs like before as well as upgrades now too, and it's been updated to reflect the changes as well as hopefully make things a bit more clear

Let me know if there are any issues or ideological complaints concerning the changes and I'll do my best to find a resolution- Cheers! :)

The-Compiler commented on 2013-08-15 18:57

This should have libmad and libvorbis added to it's dependecies:

/usr/bin/ld: cannot find -lmad
/usr/bin/ld: cannot find -lvorbis
collect2: error: ld returned 1 exit status

Also, the packaging stuff should be split to a package() function, not in build():

==> WARNING: Using a PKGBUILD without a package() function is deprecated.

Anonymous comment on 2013-07-09 02:34

I had trouble getting soundfile support working.

Changing "gcc -DT_LINUX -Wall -O3 -s -lm -lpthread -lmad -lvorbis sbagen.c -o sbagen" to "gcc -DT_LINUX -DMP3_DECODE -Wall -O3 -s -lm -lpthread -lmad -lvorbis sbagen.c -o sbagen" gets MP3 support working, but defining OGG_DECODE leads to compilation errors

prurigro commented on 2010-10-18 12:08

Revision 5 has been released to include the rhybag utility -> http://uazu.net/sbagen/rhybag.txt

prurigro commented on 2010-10-18 10:05

Sorry for the wait, I fell a bit behind on projects during the summer and am just catching up with things now.

The latest revision includes the fixes by AerialX and veox (thanks to both of you!) Since AerialX's change worked on i686, I made this the default for both archs; if anyone experiences any problems however, try commenting out "gcc -DT_LINUX -Wall -O3 -s -lm -lpthread -lmad -lvorbis sbagen.c -o sbagen || return 1" and uncommenting "sh mk || return 1" to see if it fixes things, and let me know if it does!

veox commented on 2010-09-02 21:25

Also, line 19 contains a typo: it should have '||', not '|'.

All comments