[arch-commits] Commit in skia-sharp60 (3 files)
Maxime Gauduin
alucryd at archlinux.org
Tue Jul 17 18:14:38 UTC 2018
Date: Tuesday, July 17, 2018 @ 18:14:38
Author: alucryd
Revision: 361092
archrelease: copy trunk to community-x86_64
Added:
skia-sharp60/repos/
skia-sharp60/repos/community-x86_64/
skia-sharp60/repos/community-x86_64/PKGBUILD
(from rev 361091, skia-sharp60/trunk/PKGBUILD)
----------+
PKGBUILD | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+)
Copied: skia-sharp60/repos/community-x86_64/PKGBUILD (from rev 361091, skia-sharp60/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2018-07-17 18:14:38 UTC (rev 361092)
@@ -0,0 +1,94 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=skia-sharp60
+pkgver=1.60.0
+_major=60
+_minor=0
+_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=('fontconfig' 'gcc-libs' 'glibc' 'libjpeg-turbo' 'libpng' 'libwebp'
+ 'zlib'
+ 'libfreetype.so')
+makedepends=('clang' 'git' 'python2')
+provides=('libSkiaSharp.so')
+source=("git+https://github.com/mono/SkiaSharp.git#tag=v${pkgver}"
+ "git+https://chromium.googlesource.com/chromium/tools/depot_tools"
+ "git+https://github.com/mono/skia.git")
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP')
+
+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(){
+ export ARCH='x64'
+ export PATH="${srcdir}/SkiaSharp/externals/depot_tools:$PATH"
+ export VERSION="1.${_major}.${_minor}.${_release}"
+ export SUPPORT_GPU='0'
+
+ CFLAGS="$CFLAGS -DSKIA_C_DLL -Wno-cast-qual -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-tautological-unsigned-enum-zero-compare -Wno-tautological-type-limit-compare"
+ LDFLAGS="$LDFLAGS -lfreetype -ljpeg -lpng16 -lwebp -lwebpdemux -lwebpmux -lz"
+
+ target_os='linux'
+ target_cpu="$ARCH"
+ extra_cflags=""
+ for cflag in $CFLAGS; do
+ extra_cflags+="\"${cflag}\","
+ done
+ extra_ldflags=""
+ for ldflag in $LDFLAGS; do
+ extra_ldflags+="\"${ldflag}\","
+ done
+
+ pushd SkiaSharp/externals/skia
+ bin/gn gen out/${target_os}/${target_cpu} \
+ --args="target_os=\"${target_os}\" \
+ target_cpu=\"${target_cpu}\" \
+ cc=\"clang\" \
+ cxx=\"clang++\" \
+ extra_cflags=[${extra_cflags}] \
+ extra_ldflags=[${extra_ldflags}] \
+ skia_enable_gpu=false \
+ skia_enable_tools=false \
+ skia_use_dng_sdk=false \
+ skia_use_icu=false \
+ skia_use_sfntly=false \
+ is_official_build=true \
+ is_component_build=false \
+ is_debug=false"
+ ninja -C out/${target_os}/${target_cpu}
+ popd
+
+ pushd SkiaSharp/native-builds/libSkiaSharp_linux
+ make
+ popd
+}
+
+package() {
+ cd SkiaSharp/native-builds/libSkiaSharp_linux
+
+ install -Dm 755 bin/$ARCH/libSkiaSharp.so.${_major}.${_minor}.${_release} -t "${pkgdir}"/usr/lib/
+ install -Dm 644 ../../LICENSE.md -t "${pkgdir}"/usr/share/licenses/skia-sharp60/
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list