[arch-commits] Commit in skia-sharp/repos/community-x86_64 (3 files)
Antonio Rojas
arojas at gemini.archlinux.org
Sat Mar 12 11:44:09 UTC 2022
Date: Saturday, March 12, 2022 @ 11:44:09
Author: arojas
Revision: 1149838
archrelease: copy trunk to community-x86_64
Added:
skia-sharp/repos/community-x86_64/PKGBUILD
(from rev 1149837, skia-sharp/trunk/PKGBUILD)
skia-sharp/repos/community-x86_64/fix-build.patch
(from rev 1149837, skia-sharp/trunk/fix-build.patch)
Deleted:
skia-sharp/repos/community-x86_64/PKGBUILD
-----------------+
PKGBUILD | 220 +++++++++++++++++++++++++++---------------------------
fix-build.patch | 24 +++++
2 files changed, 137 insertions(+), 107 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-12 11:43:58 UTC (rev 1149837)
+++ PKGBUILD 2022-03-12 11:44:09 UTC (rev 1149838)
@@ -1,107 +0,0 @@
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-
-pkgname=skia-sharp
-pkgver=2.80.2
-_major=80
-_minor=2
-_release=0
-pkgrel=1
-pkgdesc='The Skia 2D Graphics library from Google exposed to .NET languages and runtimes across the board'
-arch=(x86_64)
-url=https://github.com/mono/SkiaSharp
-license=(MIT)
-depends=(
- expat
- fontconfig
- libfreetype.so
- libjpeg-turbo
- libpng
- libwebp
- zlib
-)
-makedepends=(
- clang
- git
- python2
-)
-provides=(libSkiaSharp.so)
-_tag=2019706296585965cadbbe977ceab52a3a604fa5
-source=(
- git+https://github.com/mono/SkiaSharp.git#tag=${_tag}
- git+https://chromium.googlesource.com/chromium/tools/depot_tools.git
- git+https://github.com/mono/skia.git
-)
-sha256sums=('SKIP'
- 'SKIP'
- 'SKIP')
-
-pkgver() {
- cd SkiaSharp
-
- git describe --tags | sed 's/^v//'
-}
-
-prepare() {
- cd SkiaSharp
-
- for submodule in externals/{depot_tools,skia}; do
- git submodule init ${submodule}
- git config submodule.${submodule}.url ../${submodule#*/}
- git submodule update ${submodule}
- done
-
- pushd externals/skia
- python2 tools/git-sync-deps
- popd
-
- pushd externals/depot_tools
- ln -sf /usr/bin/python2 python
- popd
-}
-
-build(){
- cd SkiaSharp/externals/skia
-
- export PATH="${srcdir}/SkiaSharp/externals/depot_tools:$PATH"
-
- CFLAGS="$CFLAGS \
- -I/usr/include/freetype2 \
- -DSKIA_C_DLL"
-
- extra_cflags=""
- for cflag in $CFLAGS; do
- extra_cflags+="\"${cflag}\","
- done
- extra_ldflags=""
- for ldflag in $LDFLAGS; do
- extra_ldflags+="\"${ldflag}\","
- done
-
- bin/gn gen out \
- --args="target_os=\"linux\" \
- target_cpu=\"x64\" \
- cc=\"clang\" \
- cxx=\"clang++\" \
- extra_cflags=[${extra_cflags}] \
- extra_ldflags=[${extra_ldflags}] \
- skia_enable_gpu=true \
- skia_enable_tools=false \
- skia_use_dng_sdk=true \
- skia_use_icu=false \
- skia_use_piex=true \
- skia_use_sfntly=false \
- is_component_build=false \
- is_debug=false \
- is_official_build=true \
- linux_soname_version=\"${_major}.${_minor}.${_release}\""
- ninja -C out
-}
-
-package() {
- install -Dm 755 SkiaSharp/externals/skia/out/libSkiaSharp.so.${_major}.${_minor}.${_release} -t "${pkgdir}"/usr/lib/
- ln -s libSkiaSharp.so.${_major}.${_minor}.${_release} "${pkgdir}"/usr/lib/libSkiaSharp.so.${_major}
- ln -s libSkiaSharp.so.${_major} "${pkgdir}"/usr/lib/libSkiaSharp.so
- install -Dm 644 SkiaSharp/LICENSE.md -t "${pkgdir}"/usr/share/licenses/skia-sharp/
-}
-
-# vim: ts=2 sw=2 et:
Copied: skia-sharp/repos/community-x86_64/PKGBUILD (from rev 1149837, skia-sharp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-03-12 11:44:09 UTC (rev 1149838)
@@ -0,0 +1,113 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=skia-sharp
+pkgver=2.80.3
+_major=80
+_minor=2
+_release=0
+pkgrel=1
+pkgdesc='The Skia 2D Graphics library from Google exposed to .NET languages and runtimes across the board'
+arch=(x86_64)
+url=https://github.com/mono/SkiaSharp
+license=(MIT)
+depends=(
+ expat
+ fontconfig
+ libfreetype.so
+ libjpeg-turbo
+ libpng
+ libwebp
+ zlib
+)
+makedepends=(
+ clang
+ git
+ python2
+)
+provides=(libSkiaSharp.so)
+_tag=3e3bfb097092ef7379e3b1c7fd1255882ef72532
+source=(
+ git+https://github.com/mono/SkiaSharp.git#tag=${_tag}
+ git+https://chromium.googlesource.com/chromium/tools/depot_tools.git
+ git+https://github.com/mono/skia.git
+ fix-build.patch
+)
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'c92794fb61288f2d558c7060fb0bd558d732ff4b5194998ff46a918867ae3e98')
+
+pkgver() {
+ cd SkiaSharp
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd SkiaSharp
+
+ for submodule in externals/{depot_tools,skia}; do
+ git submodule init ${submodule}
+ git config submodule.${submodule}.url ../${submodule#*/}
+ git submodule update ${submodule}
+ done
+
+ pushd externals/skia
+ python2 tools/git-sync-deps
+ popd
+
+ pushd externals/depot_tools
+ ln -sf /usr/bin/python2 python
+ popd
+
+ patch -p1 -i ../fix-build.patch
+}
+
+build(){
+ cd SkiaSharp/externals/skia
+
+ export PATH="${srcdir}/SkiaSharp/externals/depot_tools:$PATH"
+ export CXXFLAGS="$CXXFLAGS -Wno-error=unused"
+
+ CFLAGS="$CFLAGS \
+ -I/usr/include/freetype2 \
+ -DSKIA_C_DLL \
+ -Wno-error=unused"
+
+ extra_cflags=""
+ for cflag in $CFLAGS; do
+ extra_cflags+="\"${cflag}\","
+ done
+ extra_ldflags=""
+ for ldflag in $LDFLAGS; do
+ extra_ldflags+="\"${ldflag}\","
+ done
+
+ bin/gn gen out \
+ --args="target_os=\"linux\" \
+ target_cpu=\"x64\" \
+ cc=\"clang\" \
+ cxx=\"clang++\" \
+ extra_cflags=[${extra_cflags}] \
+ extra_ldflags=[${extra_ldflags}] \
+ skia_enable_gpu=true \
+ skia_enable_tools=false \
+ skia_use_dng_sdk=true \
+ skia_use_icu=false \
+ skia_use_piex=true \
+ skia_use_sfntly=false \
+ is_component_build=false \
+ is_debug=false \
+ is_official_build=true \
+ linux_soname_version=\"${_major}.${_minor}.${_release}\""
+ ninja -C out
+}
+
+package() {
+ install -Dm 755 SkiaSharp/externals/skia/out/libSkiaSharp.so.${_major}.${_minor}.${_release} -t "${pkgdir}"/usr/lib/
+ ln -s libSkiaSharp.so.${_major}.${_minor}.${_release} "${pkgdir}"/usr/lib/libSkiaSharp.so.${_major}
+ ln -s libSkiaSharp.so.${_major} "${pkgdir}"/usr/lib/libSkiaSharp.so
+ install -Dm 644 SkiaSharp/LICENSE.md -t "${pkgdir}"/usr/share/licenses/skia-sharp/
+}
+
+# vim: ts=2 sw=2 et:
Copied: skia-sharp/repos/community-x86_64/fix-build.patch (from rev 1149837, skia-sharp/trunk/fix-build.patch)
===================================================================
--- fix-build.patch (rev 0)
+++ fix-build.patch 2022-03-12 11:44:09 UTC (rev 1149838)
@@ -0,0 +1,24 @@
+--- SkiaSharp0/externals/skia/third_party/externals/harfbuzz/src/hb-subset-cff1.cc 2022-03-12 11:04:35.366861639 +0000
++++ SkiaSharp/externals/skia/third_party/externals/harfbuzz/src/hb-subset-cff1.cc 2022-03-12 11:18:46.870071130 +0000
+@@ -469,12 +469,11 @@
+ unsigned int plan_subset_encoding (const OT::cff1::accelerator_subset_t &acc, hb_subset_plan_t *plan)
+ {
+ const Encoding *encoding = acc.encoding;
+- unsigned int size0, size1, supp_size;
++ unsigned int size0, size1;
+ hb_codepoint_t code, last_code = CFF_UNDEF_CODE;
+ hb_vector_t<hb_codepoint_t> supp_codes;
+
+ subset_enc_code_ranges.resize (0);
+- supp_size = 0;
+ supp_codes.init ();
+
+ subset_enc_num_codes = plan->num_output_glyphs () - 1;
+@@ -509,7 +509,6 @@
+ code_pair_t pair = { supp_codes[i], sid };
+ subset_enc_supp_codes.push (pair);
+ }
+- supp_size += SuppEncoding::static_size * supp_codes.length;
+ }
+ }
+ supp_codes.fini ();
More information about the arch-commits
mailing list