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

Jan Steffens heftig at archlinux.org
Sun Nov 19 15:55:16 UTC 2017


    Date: Sunday, November 19, 2017 @ 15:55:16
  Author: heftig
Revision: 267472

1.3.3-2: FS#56378

Modified:
  lib32-libogg/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++++----------------------
 1 file changed, 19 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-19 14:22:52 UTC (rev 267471)
+++ PKGBUILD	2017-11-19 15:55:16 UTC (rev 267472)
@@ -1,37 +1,34 @@
 # $Id$
-# Maintainer: Jan "heftig" Steffens <jan.steffens at gmail.com>
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
 
-_pkgbasename=libogg
-pkgname=lib32-$_pkgbasename
+pkgname=lib32-libogg
 pkgver=1.3.3
-pkgrel=1
-pkgdesc="Ogg bitstream and framing library (32-bit)"
+pkgrel=2
+pkgdesc='Ogg bitstream and framing library (32-bit)'
 arch=('x86_64')
-url="http://www.xiph.org/ogg/"
+url='http://www.xiph.org/ogg/'
 license=('BSD')
-depends=('lib32-glibc' $_pkgbasename)
+depends=(lib32-glibc libogg)
 makedepends=(gcc-multilib)
-source=(https://downloads.xiph.org/releases/ogg/$_pkgbasename-$pkgver.tar.xz)
-md5sums=('87ed742047f065046eb6c36745d871b8')
+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"
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
 
-    cd $srcdir/${_pkgbasename}-${pkgver}
-    ./configure --prefix=/usr --libdir=/usr/lib32
-    make
+  cd libogg-${pkgver}
+  ./configure --prefix=/usr --libdir=/usr/lib32
+  make
 }
 
 package() {
-    cd $srcdir/${_pkgbasename}-${pkgver}
+  cd libogg-${pkgver}
 
-    make DESTDIR=$pkgdir install
+  make DESTDIR="${pkgdir}" install
+  rm -rf "$pkgdir"/usr/{share,include,bin}
 
-    rm -rf "$pkgdir"/usr/{share,bin}
-    find "$pkgdir"/usr/include/ogg -type f -not -name config_types.h -delete
-    mv "$pkgdir"/usr/include/ogg/config_types{,-32}.h
-    mkdir -p "$pkgdir/usr/share/licenses"
-    ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+  mkdir -p "$pkgdir/usr/share/licenses"
+  ln -s libogg "$pkgdir/usr/share/licenses/$pkgname"
 }


More information about the arch-commits mailing list