Moonbase59 / loudgain

ReplayGain 2.0 loudness normalizer based on the EBU R128/ITU BS.1770 standard (-18 LUFS, FLAC, Ogg, MP2, MP3, MP4, M4A, AAC, ALAC, Opus, ASF, WMA, WAV, AIFF, WavPack, APE)
Other
182 stars 23 forks source link

Debian package and installation #15

Open ftrebien opened 4 years ago

ftrebien commented 4 years ago

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.

  1. Run as root:
    aptitude install libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libebur128-dev libtag1-dev build-essential cmake pkg-config
  2. 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
  3. 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.
  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/
  5. 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
  6. 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.
Moonbase59 commented 4 years ago

Thanks for sharing this, @ftrebien! I once made a half-hearted attempt at .deb packaging but somehow never got around doing it.

SemperTiro commented 3 years ago

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:

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 ...

hughmcmaster commented 3 years ago

loudgain will be available in the coming Bullseye release of Debian. It's been available in Debian Sid for some time now.