[arch-commits] Commit in lib32-opus/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Wed Jun 21 11:57:09 UTC 2017


    Date: Wednesday, June 21, 2017 @ 11:57:08
  Author: heftig
Revision: 239235

1.2-1

Modified:
  lib32-opus/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-21 11:01:58 UTC (rev 239234)
+++ PKGBUILD	2017-06-21 11:57:08 UTC (rev 239235)
@@ -2,18 +2,17 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: farwayer <farwayer [at] gmail [dot] com>
 
-_pkgbase=opus
-pkgname=lib32-$_pkgbase
-pkgver=1.1.4
+pkgname=lib32-opus
+pkgver=1.2
 pkgrel=1
 pkgdesc="Totally open, royalty-free, highly versatile audio codec (32-bit)"
-arch=('x86_64')
+arch=(x86_64)
 url="https://www.opus-codec.org/"
-license=('BSD')
-depends=('lib32-glibc' 'opus')
-makedepends=('gcc-multilib')
-source=("http://downloads.xiph.org/releases/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
-sha256sums=('9122b6b380081dd2665189f97bfd777f04f92dc3ab6698eea1dbb27ad59d8692')
+license=(BSD)
+depends=(lib32-glibc opus)
+makedepends=(gcc-multilib)
+source=(https://archive.mozilla.org/pub/opus/opus-$pkgver.tar.gz)
+sha256sums=('77db45a87b51578fbc49555ef1b10926179861d854eb2613207dc79d9ec0a9a9')
 
 build() {
   export CC='gcc -m32'
@@ -20,21 +19,22 @@
   export CXX='g++ -m32'
   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
   
-  cd ${_pkgbase}-${pkgver}
-  ./configure --prefix=/usr --enable-custom-modes --disable-static \
-    --enable-intrinsics --enable-rtcd --enable-ambisonics --libdir=/usr/lib32
+  cd opus-$pkgver
+  ./configure --prefix=/usr --disable-static --libdir=/usr/lib32 \
+    --enable-custom-modes \
+    --enable-ambisonics
   make
 }
 
 check() {
-  cd ${_pkgbase}-${pkgver}
+  cd opus-$pkgver
   make check
 }
 
 package() {
-  cd ${_pkgbase}-${pkgver}
-  make DESTDIR="${pkgdir}" install
-  rm -rf "${pkgdir}"/usr/{include,share}
-  install -d "${pkgdir}"/usr/share/licenses
-  ln -s ${_pkgbase} "${pkgdir}"/usr/share/licenses/$pkgname
+  cd opus-$pkgver
+  make DESTDIR="$pkgdir" install
+  rm -r "$pkgdir"/usr/{include,share}
+  install -d "$pkgdir/usr/share/licenses"
+  ln -s opus "$pkgdir/usr/share/licenses/$pkgname"
 }



More information about the arch-commits mailing list