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

Maxime Gauduin alucryd at archlinux.org
Sun May 13 08:53:47 UTC 2018


    Date: Sunday, May 13, 2018 @ 08:53:47
  Author: alucryd
Revision: 324139

upgpkg: libebml 1.3.6-1

Modified:
  libebml/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-13 01:21:41 UTC (rev 324138)
+++ PKGBUILD	2018-05-13 08:53:47 UTC (rev 324139)
@@ -4,7 +4,7 @@
 # Contributor: 03/08/04 <lefungus at altern.org>
 
 pkgname=libebml
-pkgver=1.3.5
+pkgver=1.3.6
 pkgrel=1
 pkgdesc='Extensible Binary Meta Language library'
 arch=('x86_64')
@@ -11,28 +11,31 @@
 url='https://github.com/Matroska-Org/libebml'
 license=('LGPL')
 depends=('gcc-libs')
+makedepends=('cmake')
 provides=('libebml.so')
 source=("libebml-${pkgver}.tar.gz::https://github.com/Matroska-Org/libebml/archive/release-${pkgver}.tar.gz")
-sha256sums=('efe9851797db47bc78486b6c518d822cfca435afe3d9c9d0812d8e3825cd71e6')
+sha256sums=('57ee73eacca8dc13d3c2c064fb757950450da9185e02e863cac34674681de1a8')
 
 prepare() {
-  cd libebml-release-${pkgver}
-
-  autoreconf -fiv
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build
 }
 
 build() {
-  cd libebml-release-${pkgver}
+  cd build
 
-  ./configure \
-    --prefix='/usr'
+  cmake ../libebml-release-${pkgver} \
+    -DCMAKE_BUILD_TYPE='Release' \
+    -DCMAKE_INSTALL_PREFIX='/usr' \
+    -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
+    -DBUILD_SHARED_LIBS='ON'
   make
 }
 
 package() {
-  cd libebml-release-${pkgver}
-
-  make prefix="${pkgdir}/usr" install
+  make DESTDIR="${pkgdir}" -C build install
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list