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

Maxime Gauduin alucryd at archlinux.org
Sun Jul 5 12:53:18 UTC 2020


    Date: Sunday, July 5, 2020 @ 12:53:17
  Author: alucryd
Revision: 390868

upgpkg: libmatroska 1.6.0-1

Modified:
  libmatroska/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 12:48:32 UTC (rev 390867)
+++ PKGBUILD	2020-07-05 12:53:17 UTC (rev 390868)
@@ -3,8 +3,8 @@
 # Contributor 03/08/04 <lefungus at altern.org>
 
 pkgname=libmatroska
-pkgver=1.5.2
-pkgrel=2
+pkgver=1.6.0
+pkgrel=1
 pkgdesc='Matroska library'
 arch=(x86_64)
 url=https://dl.matroska.org/downloads/libmatroska/
@@ -13,31 +13,30 @@
 makedepends=(
   cmake
   git
+  ninja
 )
 provides=(libmatroska.so)
-source=(git+https://github.com/Matroska-Org/libmatroska.git#tag=release-${pkgver})
+_tag=5ff8b5793c92be3938aae993a0afe9bb18b5935e
+source=(git+https://github.com/Matroska-Org/libmatroska.git#tag=${_tag})
 sha256sums=(SKIP)
 
-prepare() {
-  if [[ -d build ]]; then
-    rm -rf build
-  fi
-  mkdir build
+pkgver() {
+  cd libmatroska
+
+  git describe --tags | sed 's/^release-//'
 }
 
 build() {
-  cd build
-
-  cmake ../libmatroska \
-    -DCMAKE_BUILD_TYPE=Release \
+  cmake -S libmatroska -B build -G Ninja \
+    -DCMAKE_BUILD_TYPE=None \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_INSTALL_LIBDIR=/usr/lib \
     -DBUILD_SHARED_LIBS=ON
-  make
+  cmake --build build
 }
 
 package() {
-  make DESTDIR="${pkgdir}" -C build install
+  DESTDIR="${pkgdir}" cmake --build build --target install
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list