Date: Sunday, March 11, 2018 @ 17:33:39
  Author: heftig
Revision: 318558

archrelease: copy trunk to extra-x86_64

Added:
  woff2/repos/extra-x86_64/
  woff2/repos/extra-x86_64/PKGBUILD
    (from rev 318557, woff2/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: woff2/repos/extra-x86_64/PKGBUILD (from rev 318557, 
woff2/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD                               (rev 0)
+++ extra-x86_64/PKGBUILD       2018-03-11 17:33:39 UTC (rev 318558)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steff...@gmail.com>
+
+pkgname=woff2
+pkgver=1.0.2
+pkgrel=1
+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)
+_commit=1bccf208bca986e53a647dfe4811322adb06ecf8  # tags/v1.0.2
+source=("git+$url#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+  cd $pkgname
+  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
+}
+
+package() {
+  cd $pkgname
+  DESTDIR="$pkgdir" ninja install
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
+}

Reply via email to