#! /bin/bash # OPUS # Source: https://downloads.xiph.org/releases/opus/opus-1.5.2.tar.gz # # $BUILD = Directory to temporarily install # $PKGS = Directory to store built packages # # DEPS # Required: NONE # Recommended: NONE # Optional: Doxygen and texlive (or install-tl-unx) # If optimizing,use flags with GCC export CFLAGS="-march=native -pipe " export CFLAGS+="-O3 -falign-functions=32 -fno-lto -fno-math-errno " export CFLAGS+="-fno-semantic-interposition -fno-trapping-math " meson setup --prefix=/usr \ --buildtype=release \ -Ddocdir=/usr/share/doc/opus-1.5.2 OUT read -p "Compile?" && ninja -C OUT -j2 && sudo -S DESTDIR=$BUILD ninja -C OUT install && cd $BUILD && sudo -S mkdir -v ${BUILD}/install && cat > /tmp/slack-desc << "EOF" # HOW TO EDIT THIS FILE: # The "handy ruler" below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' # on the right side marks the last column you can put a character in. You must # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| opus: opus (Audio Codec) opus: opus: Opus is a totally open, royalty-free, highly versatile audio codec. opus: It is standardized by the Internet Engineering Task Force (IETF) opus: as RFC 6716 which incorporated technology from Skype's SILK codec opus: and Xiph.Org's CELT codec. opus: opus: Project site: http://opus-codec.org/ opus: opus: opus: EOF sudo -S mv -v /tmp/slack-desc install/ && sudo -S makepkg -l y -c n $PKGS/opus-1.5.2-$PSUFFIX && sudo -S rm -rf ${BUILD}/*