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

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


    Date: Sunday, September 1, 2019 @ 16:17:08
  Author: alucryd
Revision: 506320

upgpkg: lib32-libogg 1.3.4-1

Modified:
  lib32-libogg/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++++++++++-------------
 1 file changed, 22 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-01 15:51:39 UTC (rev 506319)
+++ PKGBUILD	2019-09-01 16:17:08 UTC (rev 506320)
@@ -1,35 +1,44 @@
 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
 
 pkgname=lib32-libogg
-pkgver=1.3.3
-pkgrel=3
+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=(gcc-multilib)
+makedepends=(cmake ninja)
 source=("https://downloads.xiph.org/releases/ogg/libogg-${pkgver}.tar.xz")
-sha256sums=('4f3fc6178a533d392064f14776b23c397ed4b9f48f5de297aba73b643f955c08')
+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"
 
-  cd libogg-${pkgver}
-  ./configure \
-    --prefix='/usr' \
-    --libdir='/usr/lib32'
-  make
+  cmake ../libogg-${pkgver} \
+    -G Ninja \
+    -DCMAKE_INSTALL_PREFIX='/usr' \
+    -DCMAKE_INSTALL_LIBDIR='/usr/lib32' \
+    -DBUILD_SHARED_LIBS='ON' \
+    -DINSTALL_DOCS=OFF
+  ninja
 }
 
 package() {
-  cd libogg-${pkgver}
+  DESTDIR="${pkgdir}" ninja -C build install
+  rm -rf "$pkgdir"/usr/include
 
-  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"
 }


More information about the arch-commits mailing list