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

Jan Steffens heftig at archlinux.org
Thu May 7 17:33:35 UTC 2020


    Date: Thursday, May 7, 2020 @ 17:33:34
  Author: heftig
Revision: 382689

1.0.2-3

Modified:
  woff2/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-07 17:32:56 UTC (rev 382688)
+++ PKGBUILD	2020-05-07 17:33:34 UTC (rev 382689)
@@ -2,13 +2,14 @@
 
 pkgname=woff2
 pkgver=1.0.2
-pkgrel=2
+pkgrel=3
 pkgdesc="Web Open Font Format 2 reference implementation"
 url="https://github.com/google/woff2"
 arch=(x86_64)
 license=(custom:MIT)
 depends=(brotli)
-makedepends=(git cmake ninja)
+makedepends=(git cmake)
+provides=(libwoff2{common,dec,enc}.so)
 _commit=1bccf208bca986e53a647dfe4811322adb06ecf8  # tags/v1.0.2
 source=("git+$url#commit=$_commit")
 sha512sums=('SKIP')
@@ -15,17 +16,19 @@
 
 prepare() {
   cd $pkgname
+
+  # Install binaries
   sed -i 's/NOT BUILD_SHARED_LIBS/TRUE/' CMakeLists.txt
 }
 
 build() {
-  cd $pkgname
-  cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib .
-  ninja
+  cmake -H$pkgname -Bbuild \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=/usr/lib
+  cmake --build build
 }
 
 package() {
-  cd $pkgname
-  DESTDIR="$pkgdir" ninja install
-  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
+  DESTDIR="$pkgdir" cmake --build build --target install
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/LICENSE
 }


More information about the arch-commits mailing list