Skip to content

Instantly share code, notes, and snippets.

@therealromster
Created July 19, 2015 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save therealromster/1b287e2a3835d006e1e4 to your computer and use it in GitHub Desktop.
Save therealromster/1b287e2a3835d006e1e4 to your computer and use it in GitHub Desktop.
opus Pkgfile.in
# Description: Codec designed for interactive speech and audio transmission over the Internet.
# URL: http://www.opus-codec.org/
#ifeq X86 1
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: opus
#else
# Maintainer: Danny Rawlins, crux at romster dot me
# Packager: Danny Rawlins, crux at romster dot me
#endif
#ifeq X86 1
name=opus-32
#else
name=opus
#endif
version=#exec cat src/version
release=1
source=(http://downloads.us.xiph.org/releases/opus/opus-$version.tar.gz)
build() {
cd opus-$version
./configure \\
--prefix=/usr \\
#ifeq X86 1
--libdir=/usr/lib32 \\
#endif
--mandir=/usr/man \\
--enable-custom-modes \\
#ifeq NLS 1
--enable-nls
#else
--disable-nls
#endif
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/doc
#ifeq X86 1
rm -r $PKG/usr/{bin,include}
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment