Date: Thursday, May 7, 2020 @ 17:51:54 Author: heftig Revision: 382691
archrelease: copy trunk to extra-x86_64 Added: woff2/repos/extra-x86_64/PKGBUILD (from rev 382690, woff2/trunk/PKGBUILD) Deleted: woff2/repos/extra-x86_64/PKGBUILD ----------+ PKGBUILD | 65 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 34 insertions(+), 31 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-05-07 17:38:41 UTC (rev 382690) +++ PKGBUILD 2020-05-07 17:51:54 UTC (rev 382691) @@ -1,31 +0,0 @@ -# Maintainer: Jan Alexander Steffens (heftig) <jan.steff...@gmail.com> - -pkgname=woff2 -pkgver=1.0.2 -pkgrel=2 -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 -} Copied: woff2/repos/extra-x86_64/PKGBUILD (from rev 382690, woff2/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-05-07 17:51:54 UTC (rev 382691) @@ -0,0 +1,34 @@ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steff...@gmail.com> + +pkgname=woff2 +pkgver=1.0.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) +provides=(libwoff2{common,dec,enc}.so) +_commit=1bccf208bca986e53a647dfe4811322adb06ecf8 # tags/v1.0.2 +source=("git+$url#commit=$_commit") +sha512sums=('SKIP') + +prepare() { + cd $pkgname + + # Install binaries + sed -i 's/NOT BUILD_SHARED_LIBS/TRUE/' CMakeLists.txt +} + +build() { + cmake -H$pkgname -Bbuild \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --build build --target install + install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/LICENSE +}