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

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


    Date: Sunday, September 1, 2019 @ 16:08:56
  Author: alucryd
Revision: 361462

upgpkg: libogg 1.3.4-1

Modified:
  libogg/trunk/PKGBUILD

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++----------------
 1 file changed, 35 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-01 15:07:05 UTC (rev 361461)
+++ PKGBUILD	2019-09-01 16:08:56 UTC (rev 361462)
@@ -3,29 +3,48 @@
 # Contributor: John Proctor <jproctor at prium.net>
 
 pkgname=libogg
-pkgver=1.3.3
-pkgrel=3
+pkgver=1.3.4
+pkgrel=1
 pkgdesc='Ogg bitstream and framing library'
-arch=('x86_64')
-url='https://www.xiph.org/ogg/'
-license=('BSD')
-depends=('glibc')
-source=("https://downloads.xiph.org/releases/ogg/libogg-${pkgver}.tar.xz")
-sha256sums=('4f3fc6178a533d392064f14776b23c397ed4b9f48f5de297aba73b643f955c08')
+arch=(x86_64)
+url=https://www.xiph.org/ogg/
+license=(BSD)
+depends=(glibc)
+makedepends=(
+  cmake
+  git
+  ninja
+)
+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() {
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build
+}
+
 build() {
-  cd libogg-${pkgver}
+  cd build
 
-  ./configure \
-    --prefix='/usr'
-  make
+  cmake ../ogg \
+    -G Ninja \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_SHARED_LIBS=ON
+  ninja
 }
 
 package() {
-  cd libogg-${pkgver}
-
-  make DESTDIR="${pkgdir}" install
-  install -Dm 644 COPYING -t "${pkgdir}"/usr/share/licenses/libogg/
+  DESTDIR="${pkgdir}" ninja -C build install
+  install -Dm 644 ogg/COPYING -t "${pkgdir}"/usr/share/licenses/libogg/
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list