generated from archlinux/template
Use static libjpeg
Using libjpeg-turbo on Aseprite gives the error “Wrong JPEG library version: library is 62, caller expects 80.” I’m not sure if there is any way to use a shared library right now, so I took the easy way out and just used the static library compiled with Aseprite. Additionally, I changed the hack for using Python 2 with depot_tools to something less messy.
This commit is contained in:
parent
9ab6b40eb3
commit
3bc48e49e0
3
.SRCINFO
3
.SRCINFO
@ -1,7 +1,7 @@
|
|||||||
pkgbase = aseprite
|
pkgbase = aseprite
|
||||||
pkgdesc = Create animated sprites and pixel art
|
pkgdesc = Create animated sprites and pixel art
|
||||||
pkgver = 1.2.17
|
pkgver = 1.2.17
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = http://www.aseprite.org/
|
url = http://www.aseprite.org/
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = custom
|
license = custom
|
||||||
@ -14,7 +14,6 @@ pkgbase = aseprite
|
|||||||
depends = giflib
|
depends = giflib
|
||||||
depends = zlib
|
depends = zlib
|
||||||
depends = libpng
|
depends = libpng
|
||||||
depends = libjpeg-turbo
|
|
||||||
depends = tinyxml
|
depends = tinyxml
|
||||||
depends = freetype2
|
depends = freetype2
|
||||||
depends = harfbuzz
|
depends = harfbuzz
|
||||||
|
20
PKGBUILD
20
PKGBUILD
@ -8,12 +8,12 @@
|
|||||||
|
|
||||||
pkgname=aseprite
|
pkgname=aseprite
|
||||||
pkgver=1.2.17
|
pkgver=1.2.17
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='Create animated sprites and pixel art'
|
pkgdesc='Create animated sprites and pixel art'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://www.aseprite.org/"
|
url="http://www.aseprite.org/"
|
||||||
license=('custom')
|
license=('custom')
|
||||||
depends=('cmark' 'curl' 'giflib' 'zlib' 'libpng' 'libjpeg-turbo' 'tinyxml' 'freetype2'
|
depends=('cmark' 'curl' 'giflib' 'zlib' 'libpng' 'tinyxml' 'freetype2'
|
||||||
'harfbuzz' 'nettle' 'fontconfig' 'libxcursor' 'hicolor-icon-theme')
|
'harfbuzz' 'nettle' 'fontconfig' 'libxcursor' 'hicolor-icon-theme')
|
||||||
makedepends=('cmake' 'ninja' 'git' 'python2')
|
makedepends=('cmake' 'ninja' 'git' 'python2')
|
||||||
conflicts=("aseprite-git" "aseprite-gpl" "skia-git")
|
conflicts=("aseprite-git" "aseprite-gpl" "skia-git")
|
||||||
@ -135,22 +135,19 @@ prepare() {
|
|||||||
chmod u=rwx,g=rx,o=rx --verbose gn
|
chmod u=rwx,g=rx,o=rx --verbose gn
|
||||||
mv --verbose gn skia/bin/gn
|
mv --verbose gn skia/bin/gn
|
||||||
cp --verbose skia/bin/gn skia/buildtools/linux64/gn
|
cp --verbose skia/bin/gn skia/buildtools/linux64/gn
|
||||||
|
|
||||||
# Skia assumes python is linked to python2, not python3
|
|
||||||
mkdir --parents --verbose binsub
|
|
||||||
cd binsub
|
|
||||||
ln --force --symbolic --verbose /usr/bin/python2 python
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}"
|
cd "${srcdir}"
|
||||||
|
|
||||||
# Build skia
|
# Build skia
|
||||||
_skiapath="${srcdir}/binsub:${srcdir}/depot_tools:${PATH}"
|
_skiapath="${srcdir}/depot_tools:${PATH}"
|
||||||
cd skia
|
cd skia
|
||||||
PATH="${_skiapath}" gn gen out/Release-x64 --args="is_debug=false is_official_build=true \
|
# Bypass the gn script, which uses `python` and expects Python 2
|
||||||
skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false \
|
PATH="${_skiapath}" PYTHONDONTWRITEBYTECODE=1 python2 "$(which gn.py)" gen out/Release-x64 \
|
||||||
skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false"
|
--args="is_debug=false is_official_build=true skia_use_system_expat=false \
|
||||||
|
skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false \
|
||||||
|
skia_use_system_libwebp=false skia_use_system_zlib=false"
|
||||||
PATH="${_skiapath}" ninja -C out/Release-x64 skia modules
|
PATH="${_skiapath}" ninja -C out/Release-x64 skia modules
|
||||||
|
|
||||||
# Build aseprite
|
# Build aseprite
|
||||||
@ -161,7 +158,6 @@ build() {
|
|||||||
-DWITH_WEBP_SUPPORT=ON \
|
-DWITH_WEBP_SUPPORT=ON \
|
||||||
-DUSE_SHARED_CURL=ON \
|
-DUSE_SHARED_CURL=ON \
|
||||||
-DUSE_SHARED_GIFLIB=ON \
|
-DUSE_SHARED_GIFLIB=ON \
|
||||||
-DUSE_SHARED_JPEGLIB=ON \
|
|
||||||
-DUSE_SHARED_HARFBUZZ=ON \
|
-DUSE_SHARED_HARFBUZZ=ON \
|
||||||
-DUSE_SHARED_ZLIB=ON \
|
-DUSE_SHARED_ZLIB=ON \
|
||||||
-DUSE_SHARED_LIBPNG=ON \
|
-DUSE_SHARED_LIBPNG=ON \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user