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

Jan Steffens heftig at archlinux.org
Fri May 8 10:00:16 UTC 2020


    Date: Friday, May 8, 2020 @ 10:00:15
  Author: heftig
Revision: 625583

archrelease: copy trunk to multilib-x86_64

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

----------+
 PKGBUILD |   96 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 50 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-08 09:59:42 UTC (rev 625582)
+++ PKGBUILD	2020-05-08 10:00:15 UTC (rev 625583)
@@ -1,46 +0,0 @@
-# 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:

Copied: lib32-libogg/repos/multilib-x86_64/PKGBUILD (from rev 625582, lib32-libogg/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-08 10:00:15 UTC (rev 625583)
@@ -0,0 +1,50 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=lib32-libogg
+pkgver=1.3.4
+pkgrel=2
+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
+  git
+  ninja
+)
+provides=(libogg.so)
+source=(git+https://github.com/xiph/ogg.git?signed#tag=3328abd152508614f7ce4cd491dc98d14eba7ffc)
+sha256sums=(SKIP)
+validpgpkeys=(B7B00AEE1F960EEA0FED66FB9259A8F2D2D44C84) # Ralph Giles <giles at thaumas.net>
+
+pkgver() {
+  cd ogg
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd ogg
+}
+
+build() {
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
+
+  local CFLAGS="$CPPFLAGS $CFLAGS" CXXFLAGS="$CPPFLAGS $CXXFLAGS"
+  cmake -Hogg -Bbuild -G Ninja \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=/usr/lib32 \
+    -DINSTALL_DOCS=OFF \
+    -DBUILD_SHARED_LIBS=ON
+  cmake --build build
+}
+
+package() {
+  DESTDIR="${pkgdir}" cmake --build build --target install
+  rm -r "$pkgdir"/usr/include
+  install -Dm 644 ogg/COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list