Date: Thursday, April 20, 2023 @ 17:09:28
  Author: heftig
Revision: 1447829

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-opus/repos/multilib-x86_64/PKGBUILD
    (from rev 1447828, lib32-opus/trunk/PKGBUILD)
Deleted:
  lib32-opus/repos/multilib-x86_64/PKGBUILD

----------+
 PKGBUILD |  105 +++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 64 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-20 17:09:12 UTC (rev 1447828)
+++ PKGBUILD    2023-04-20 17:09:28 UTC (rev 1447829)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: farwayer <farwayer [at] gmail [dot] com>
-
-pkgname=lib32-opus
-pkgver=1.3.1
-pkgrel=2
-pkgdesc="Totally open, royalty-free, highly versatile audio codec (32-bit)"
-url="https://www.opus-codec.org/";
-arch=(x86_64)
-license=(BSD)
-depends=(lib32-glibc opus)
-source=(https://archive.mozilla.org/pub/opus/opus-$pkgver.tar.gz)
-sha256sums=('65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d')
-
-build() {
-  export CC='gcc -m32'
-  export CXX='g++ -m32'
-  export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
-  
-  cd opus-$pkgver
-  ./configure --prefix=/usr --disable-static --libdir=/usr/lib32 
--enable-custom-modes
-  make
-}
-
-check() {
-  cd opus-$pkgver
-  make check
-}
-
-package() {
-  provides=(libopus.so)
-
-  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"
-}
-
-# vim:set sw=2 et:

Copied: lib32-opus/repos/multilib-x86_64/PKGBUILD (from rev 1447828, 
lib32-opus/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-04-20 17:09:28 UTC (rev 1447829)
@@ -0,0 +1,64 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: farwayer <farwayer [at] gmail [dot] com>
+
+pkgbase=lib32-opus
+pkgname=(
+  lib32-opus
+)
+pkgver=1.4
+pkgrel=1
+pkgdesc="Totally open, royalty-free, highly versatile audio codec (32-bit)"
+url="https://www.opus-codec.org/";
+arch=(x86_64)
+license=(BSD)
+depends=(
+  lib32-glibc
+  opus
+)
+makedepends=(
+  git
+  meson
+)
+_commit=82ac57d9f1aaf575800cf17373348e45b7ce6c0d  # tags/v1.4^0
+source=("git+https://github.com/xiph/opus#commit=$_commit";)
+b2sums=('SKIP')
+
+pkgver() {
+  cd opus
+  git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+  cd opus
+}
+
+build() {
+  local meson_options=(
+    --libdir=/usr/lib32
+    -D asm=disabled
+    -D custom-modes=true
+    -D docs=disabled
+  )
+
+  export CC='gcc -m32'
+  export CXX='g++ -m32'
+  export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
+
+  arch-meson opus build "${meson_options[@]}"
+  meson compile -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+package_lib32-opus() {
+  provides=(libopus.so)
+
+  meson install -C build --destdir "$pkgdir"
+  rm -r "$pkgdir/usr/include"
+
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 opus/COPYING
+}
+
+# vim:set sw=2 sts=-1 et:

Reply via email to