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

Maxime Gauduin alucryd at archlinux.org
Sun Sep 1 16:17:14 UTC 2019


    Date: Sunday, September 1, 2019 @ 16:17:13
  Author: alucryd
Revision: 506321

archrelease: copy trunk to multilib-x86_64

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

----------+
 PKGBUILD |   83 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 46 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-01 16:17:08 UTC (rev 506320)
+++ PKGBUILD	2019-09-01 16:17:13 UTC (rev 506321)
@@ -1,37 +0,0 @@
-# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
-
-pkgname=lib32-libogg
-pkgver=1.3.3
-pkgrel=3
-pkgdesc='Ogg bitstream and framing library (32-bit)'
-arch=('x86_64')
-url='https://www.xiph.org/ogg/'
-license=('BSD')
-depends=(lib32-glibc libogg)
-makedepends=(gcc-multilib)
-source=("https://downloads.xiph.org/releases/ogg/libogg-${pkgver}.tar.xz")
-sha256sums=('4f3fc6178a533d392064f14776b23c397ed4b9f48f5de297aba73b643f955c08')
-
-build() {
-  export CC="gcc -m32"
-  export CXX="g++ -m32"
-  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
-
-  cd libogg-${pkgver}
-  ./configure \
-    --prefix='/usr' \
-    --libdir='/usr/lib32'
-  make
-}
-
-package() {
-  cd libogg-${pkgver}
-
-  make DESTDIR="${pkgdir}" install
-  rm -rf "$pkgdir"/usr/{share,include,bin}
-
-  mkdir -p "$pkgdir/usr/share/licenses"
-  ln -s libogg "$pkgdir/usr/share/licenses/$pkgname"
-}
-
-# vim: ts=2 sw=2 et:

Copied: lib32-libogg/repos/multilib-x86_64/PKGBUILD (from rev 506320, lib32-libogg/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-09-01 16:17:13 UTC (rev 506321)
@@ -0,0 +1,46 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=lib32-libogg
+pkgver=1.3.4
+pkgrel=1
+pkgdesc='Ogg bitstream and framing library (32-bit)'
+arch=('x86_64')
+url='https://www.xiph.org/ogg/'
+license=('BSD')
+depends=(lib32-glibc libogg)
+makedepends=(cmake ninja)
+source=("https://downloads.xiph.org/releases/ogg/libogg-${pkgver}.tar.xz")
+sha256sums=('c163bc12bc300c401b6aa35907ac682671ea376f13ae0969a220f7ddf71893fe')
+
+prepare() {
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build
+}
+
+build() {
+  cd build
+
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+  cmake ../libogg-${pkgver} \
+    -G Ninja \
+    -DCMAKE_INSTALL_PREFIX='/usr' \
+    -DCMAKE_INSTALL_LIBDIR='/usr/lib32' \
+    -DBUILD_SHARED_LIBS='ON' \
+    -DINSTALL_DOCS=OFF
+  ninja
+}
+
+package() {
+  DESTDIR="${pkgdir}" ninja -C build install
+  rm -rf "$pkgdir"/usr/include
+
+  mkdir -p "$pkgdir/usr/share/licenses"
+  ln -s libogg "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list