Debian package and installation
ftrebien opened this issue ยท 3 comments
I'm not sure if this would be the right place to share this, but I managed to generate a deb package and install loudgain in my Debian Stretch following the official install guide with a few extra steps. Probably works for Debian derivatives like Ubuntu and Mint, not sure if all dependencies have exactly the same name.
- Run as root:
aptitude install libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libebur128-dev libtag1-dev build-essential cmake pkg-config
- Run as regular user:
git clone https://github.com/Moonbase59/loudgain.git cd loudgain git checkout tags/v0.6.8 mkdir build cd build cmake .. make
- At this point, you can test if loudgain works by running it from the current directory or running it including its absolute path. On my system, loudgain warns that libebur128's version is too old (1.2.2), but everything seems to work fine nonetheless. Probably works well on Debian Buster which has v1.2.4.
- Run as a regular user:
echo -e "loudgain loudness normalizer for music files\n\nloudgain is a versatile ReplayGain 2.0 loudness normalizer, based on the EBU R128/ITU BS.1770 standard (-18 LUFS)." > description-pak mkdir ./doc-pak cp ../COPYING ../debian/changelog ../debian/copyright ./doc-pak/
- Run as root:
checkinstall -y --pkgrelease=1 \ --pkgname=loudgain \ --pkgversion="0.6.8" \ --pkgsource="https://github.com/Moonbase59/loudgain" \ --requires="libavcodec57,libavformat57,libavutil55,libswresample2,libebur128-1,libtag1v5" \ make install
- A
loudgain_0.6.8-1_amd64.deb
file should have been created in the current directory and the package should already be installed in the system. At this point, loudgain works from the command line from any directory.
Thanks for sharing this, @ftrebien! I once made a half-hearted attempt at .deb packaging but somehow never got around doing it.
Just to confirm that this works on Debian Buster, too. Thank you both, @Moonbase59 and @ftrebien! I followed your instructions to the letter. The only things I changed were:
- I omitted the -y option from the checkinstall line
- I replaced libavcodec57,libavformat57,libavutil55,libswresample2 with their current versions, i.e. libavcodec58,libavformat58,libavutil56,libswresample3
It works a treat. And of course loudgain is the way RG should be done. Now I just need to find a good time to rescan my 1,200 or so albums ...
loudgain will be available in the coming Bullseye release of Debian. It's been available in Debian Sid for some time now.