[arch-commits] Commit in lib32-faudio/repos (multilib-x86_64 multilib-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Mar 21 20:16:11 UTC 2019


    Date: Thursday, March 21, 2019 @ 20:16:10
  Author: felixonmars
Revision: 443083

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-faudio/repos/multilib-x86_64/
  lib32-faudio/repos/multilib-x86_64/PKGBUILD
    (from rev 443082, lib32-faudio/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: lib32-faudio/repos/multilib-x86_64/PKGBUILD (from rev 443082, lib32-faudio/trunk/PKGBUILD)
===================================================================
--- multilib-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-x86_64/PKGBUILD	2019-03-21 20:16:10 UTC (rev 443083)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrew Eikum
+
+pkgname=lib32-faudio
+pkgver=19.02
+pkgrel=1
+pkgdesc="XAudio2 reimplementation"
+arch=(x86_64)
+url="https://github.com/FNA-XNA/FAudio/"
+license=('custom:zlib')
+depends=('lib32-dbus' 'lib32-sdl2' 'faudio')
+makedepends=('cmake' 'ninja')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/FNA-XNA/FAudio/archive/$pkgver.tar.gz")
+sha512sums=('f3ea82aae5f90bbac286b8e72c1cb6a70e41fdf86f9c1043b465cb242f1232574e59e0ec724f3c317ed4c44a12d4dde87c8b1bc03832e1b011b4e61d9f70da39')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  export CC="gcc -m32 -mstackrealign"
+  export CXX="g++ -m32 -mstackrealign"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+  cd build
+  cmake ../FAudio-$pkgver -G Ninja \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_LIBDIR=lib32
+  # TODO:  -DFFMPEG=ON
+  ninja
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+  rm -r "$pkgdir"/usr/include
+
+  install -Dm644 FAudio-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}


More information about the arch-commits mailing list