generated from archlinux/template
Compare commits
39 Commits
d963485417
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a05d374373 | ||
|
|
bcfab82e51 | ||
|
|
549eea3232 | ||
|
|
df5dfd0ef6 | ||
|
|
99a0eae33c | ||
|
|
8b9438b67b | ||
|
|
604fc8b432 | ||
|
|
7ae74ecbb5 | ||
|
|
8aea3e2195 | ||
|
|
80dc97570b | ||
|
|
878d6b2afc | ||
|
|
09ba25c432 | ||
|
|
7fcd957c8a | ||
|
|
7d9d4e7959 | ||
|
|
cebe8a5079 | ||
|
|
0e1cc508dd | ||
|
|
74f397d5c4 | ||
|
|
5c6b208af2 | ||
|
|
8456830c4e | ||
|
|
34b3834c37 | ||
|
|
1a572e4ef6 | ||
|
|
126d72d8f6 | ||
|
|
e5e7eb99ed | ||
|
|
f7f920ac54 | ||
|
|
79fa63cdbd | ||
|
|
5fa7b892df | ||
|
|
f48acf1a6e | ||
|
|
74d58152b1 | ||
|
|
ae9ddb02b4 | ||
|
|
8556e6f961 | ||
|
|
6d2fef7129 | ||
|
|
b5e8ec4ea6 | ||
|
|
c62bcb11b8 | ||
|
|
5b3cb3a30b | ||
|
|
cae580a4d5 | ||
|
|
bf49d79589 | ||
|
|
104e97e292 | ||
|
|
53ac4efec5 | ||
|
|
45bdfec1bd |
31
.SRCINFO
31
.SRCINFO
@@ -1,7 +1,7 @@
|
||||
pkgbase = aseprite
|
||||
pkgdesc = Create animated sprites and pixel art
|
||||
pkgver = 1.3.13
|
||||
pkgrel = 6
|
||||
pkgver = 1.3.15.5
|
||||
pkgrel = 1
|
||||
url = https://www.aseprite.org/
|
||||
arch = x86_64
|
||||
license = LicenseRef-Aseprite-EULA
|
||||
@@ -26,17 +26,21 @@ pkgbase = aseprite
|
||||
depends = libwebp.so
|
||||
depends = libwebpmux.so
|
||||
depends = libwebpdemux.so
|
||||
depends = libjpeg.so
|
||||
depends = hicolor-icon-theme
|
||||
depends = libexpat.so=1-64
|
||||
depends = libharfbuzz.so=0-64
|
||||
depends = libgl
|
||||
depends = libfontconfig.so
|
||||
depends = libxcursor
|
||||
noextract = Aseprite-v1.3.13-Source.zip
|
||||
noextract = skia-m102.tar.gz
|
||||
source = https://github.com/aseprite/aseprite/releases/download/v1.3.13/Aseprite-v1.3.13-Source.zip
|
||||
source = skia-m102.tar.gz::https://github.com/aseprite/skia/archive/refs/tags/m102-861e4743af.tar.gz
|
||||
source = aseprite-strings::git+https://github.com/aseprite/strings.git#commit=5499ce2030d831c614f1ce7fdfdaf36a973c21f8
|
||||
depends = libxrandr
|
||||
noextract = Aseprite-v1.3.15.5-Source.zip
|
||||
noextract = skia-m124.tar.gz
|
||||
noextract = aseprite-skia-m124-flutter.tar.gz
|
||||
source = https://github.com/aseprite/aseprite/releases/download/v1.3.15.4/Aseprite-v1.3.15.5-Source.zip
|
||||
source = skia-m124.tar.gz::https://github.com/aseprite/skia/archive/refs/tags/m124-08a5439a6b.tar.gz
|
||||
source = skia-m124-icu::git+https://chromium.googlesource.com/chromium/deps/icu.git#commit=a0718d4f121727e30b8d52c7a189ebf5ab52421f
|
||||
source = aseprite-strings::git+https://github.com/aseprite/strings.git#commit=038a79a039eecee7110a5da5862e15941abea629
|
||||
source = desktop.patch
|
||||
source = shared-fmt.patch
|
||||
source = shared-libarchive.patch
|
||||
@@ -46,17 +50,20 @@ pkgbase = aseprite
|
||||
source = fix-shared-tinyxml2.patch
|
||||
source = shared-libwebp-found.patch
|
||||
source = include_cstdint.patch
|
||||
sha256sums = c2e639c083d99a5a478ded7c86d9d7f4e4ff9ebebf6fedac7f8bfc94d6bd94c1
|
||||
sha256sums = 8d76c1ad3693e1fc019eb14d806082148eb4ed7d601474aeeaae601b05a9b3ad
|
||||
sha256sums = 8ee87f57b5792e5751f63fe37cdda8d29053cd4449e1f533e792e15abcfefa79
|
||||
source = shared_libjpeg-turbo.patch
|
||||
sha256sums = 2402325af2d6b7f663a5f06f728a6d2a1a2053e17cd97afa483b155689a3e9d4
|
||||
sha256sums = c2a567d6b8bb933a92615cbdee0de268d02c3a06863337ee8822eedab9ed66ba
|
||||
sha256sums = b52f179a687ef2f91a52b696ab6581f4a37df5e88cb22040fa1ec6567cf0ebb1
|
||||
sha256sums = b8c25e0f29d05eefe9e522c32fb0a38db4f0f574adcfb5f20d4324c9e39fbb8c
|
||||
sha256sums = 8b14e36939e930de581e95abf0591645aa0fcfd47161cf88b062917dbaaef7f9
|
||||
sha256sums = c3591d376180d99ff8001c3d549c0bd18ef5e4d95f1755ccaa8e2fd65dd5d2b3
|
||||
sha256sums = 89cd28a5a90ee9dd42e85866b6f954bde526068d94311b0730a62f00f9cfffdb
|
||||
sha256sums = 96d75ecc951712e80734f476511658fcc3c91fc1655fe9a01453c3fc8c2a9274
|
||||
sha256sums = 0f8adb959d7000697af453d6cf5aaf9984b74868008382aad541d2c29871c751
|
||||
sha256sums = eb9f544e68b41b5cb1a9ab7a6648db51587e67e94f1a452cb5a84f3d224bf5d0
|
||||
sha256sums = c2d14f9738a96a9db3695c00ac3d14b1312b6a595b151bd56e19422c86517654
|
||||
sha256sums = ba02fc060dc930cfd66a8903a5d8a59f981753bdf416e91cc77a48c56c86aea3
|
||||
sha256sums = 72605d6760c29eb98f2d8d8cf2cc9f9f7d7655bcf7cfc944f6a46b0957adbb14
|
||||
sha256sums = ce20c8caa61b0e4b478eb08853e1148eba76836027ec04cf5d0f76c4db9ae112
|
||||
sha256sums = 3381038fc5209600428801fa0b2b05ddee031b0926eaa75c114172e503916cd5
|
||||
sha256sums = 0fa67d34f63cb4ed472b620ebad0656aeca646cb7f1069b7066ee91e6902fe6c
|
||||
|
||||
pkgname = aseprite
|
||||
|
||||
12
LICENSE
Normal file
12
LICENSE
Normal file
@@ -0,0 +1,12 @@
|
||||
Copyright Arch Linux Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for
|
||||
any purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
|
||||
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
|
||||
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
|
||||
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
||||
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
||||
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
1
LICENSES/0BSD.txt
Symbolic link
1
LICENSES/0BSD.txt
Symbolic link
@@ -0,0 +1 @@
|
||||
../LICENSE
|
||||
42
LICENSES/LicenseRef-Aseprite-EULA.txt
Normal file
42
LICENSES/LicenseRef-Aseprite-EULA.txt
Normal file
@@ -0,0 +1,42 @@
|
||||
END-USER LICENSE AGREEMENT FOR ASEPRITE
|
||||
|
||||
IMPORTANT: PLEASE READ THE TERMS AND CONDITIONS OF THIS LICENSE AGREEMENT CAREFULLY BEFORE CONTINUING WITH THIS PROGRAM INSTALL.
|
||||
|
||||
This End-User License Agreement ("EULA") is a legal agreement between you (either an individual or a single entity) and Igara Studio S.A. (hereinafter referred to as "Licensor"), for the software product(s) identified above which may include associated software components, media, printed materials, and "online" or electronic documentation ("SOFTWARE PRODUCT"). By installing, copying, or otherwise using the SOFTWARE PRODUCT, you agree to be bound by the terms of this EULA. This license agreement represents the entire agreement concerning the program between You and the Licensor, and it supersedes any prior proposal, representation, or understanding between the parties. If you do not agree to the terms of this EULA, do not install or use the SOFTWARE PRODUCT.
|
||||
|
||||
The SOFTWARE PRODUCT is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. The SOFTWARE PRODUCT is licensed, not sold.
|
||||
|
||||
1. GRANT OF LICENSE.
|
||||
The SOFTWARE PRODUCT is licensed as follows:
|
||||
(a) Installation and Use.
|
||||
The Licensor grants you the right to install and use copies of the SOFTWARE PRODUCT on your computer running a validly licensed copy of the operating system for which the SOFTWARE PRODUCT was designed.
|
||||
(b) Backup Copies.
|
||||
You may also make copies of the SOFTWARE PRODUCT as may be necessary for backup and archival purposes.
|
||||
|
||||
2. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS.
|
||||
(a) Maintenance of Copyright Notices.
|
||||
You must not remove or alter any copyright notices on any and all copies of the SOFTWARE PRODUCT.
|
||||
(b) Distribution.
|
||||
You may not distribute copies of the SOFTWARE PRODUCT to third parties. Evaluation versions available for download from the Licensor's websites may be freely distributed.
|
||||
(c) Prohibition on Reverse Engineering, Decompilation, and Disassembly.
|
||||
You may not reverse engineer, decompile, or disassemble the SOFTWARE PRODUCT, except and only to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation.
|
||||
(d) Rental.
|
||||
You may not rent, lease, or lend the SOFTWARE PRODUCT.
|
||||
(e) Support Services.
|
||||
The Licensor may provide you with support services related to the SOFTWARE PRODUCT ("Support Services"). Any supplemental software code provided to you as part of the Support Services shall be considered part of the SOFTWARE PRODUCT and subject to the terms and conditions of this EULA.
|
||||
(f) Compliance with Applicable Laws.
|
||||
You must comply with all applicable laws regarding use of the SOFTWARE PRODUCT.
|
||||
(g) Source code.
|
||||
You may only compile and modify the source code of the SOFTWARE PRODUCT for your own personal purpose or to propose a contribution to the SOFTWARE PRODUCT.
|
||||
|
||||
3. TERMINATION
|
||||
Without prejudice to any other rights, the Licensor may terminate this EULA if you fail to comply with the terms and conditions of this EULA. In such event, you must destroy all copies of the SOFTWARE PRODUCT in your possession.
|
||||
|
||||
4. COPYRIGHT
|
||||
All title, including but not limited to copyrights, in and to the SOFTWARE PRODUCT and any copies thereof are owned by the Licensor or its suppliers. All title and intellectual property rights in and to the content which may be accessed through use of the SOFTWARE PRODUCT is the property of the respective content owner and may be protected by applicable copyright or other intellectual property laws and treaties. This EULA grants you no rights to use such content. All rights not expressly granted are reserved by the Licensor.
|
||||
|
||||
5. NO WARRANTIES
|
||||
The Licensor expressly disclaims any warranty for the SOFTWARE PRODUCT. The SOFTWARE PRODUCT is provided 'As Is' without any express or implied warranty of any kind, including but not limited to any warranties of merchantability, noninfringement, or fitness of a particular purpose. The Licensor does not warrant or assume responsibility for the accuracy or completeness of any information, text, graphics, links or other items contained within the SOFTWARE PRODUCT. The Licensor makes no warranties respecting any harm that may be caused by the transmission of a computer virus, worm, time bomb, logic bomb, or other such computer program. The Licensor further expressly disclaims any warranty or representation to Authorized Users or to any third party.
|
||||
|
||||
6. LIMITATION OF LIABILITY
|
||||
In no event shall the Licensor be liable for any damages (including, without limitation, lost profits, business interruption, or lost information) rising out of 'Authorized Users' use of or inability to use the SOFTWARE PRODUCT, even if the Licensor has been advised of the possibility of such damages. In no event will the Licensor be liable for loss of data or for indirect, special, incidental, consequential (including lost profit), or other damages based in contract, tort or otherwise. The Licensor shall have no liability with respect to the content of the SOFTWARE PRODUCT or any part thereof, including but not limited to errors or omissions contained therein, libel, infringements of rights of publicity, privacy, trademark rights, business interruption, personal injury, loss of privacy, moral rights or the disclosure of confidential information.
|
||||
42
LicenseRef-Aseprite-EULA.txt
Normal file
42
LicenseRef-Aseprite-EULA.txt
Normal file
@@ -0,0 +1,42 @@
|
||||
END-USER LICENSE AGREEMENT FOR ASEPRITE
|
||||
|
||||
IMPORTANT: PLEASE READ THE TERMS AND CONDITIONS OF THIS LICENSE AGREEMENT CAREFULLY BEFORE CONTINUING WITH THIS PROGRAM INSTALL.
|
||||
|
||||
This End-User License Agreement ("EULA") is a legal agreement between you (either an individual or a single entity) and Igara Studio S.A. (hereinafter referred to as "Licensor"), for the software product(s) identified above which may include associated software components, media, printed materials, and "online" or electronic documentation ("SOFTWARE PRODUCT"). By installing, copying, or otherwise using the SOFTWARE PRODUCT, you agree to be bound by the terms of this EULA. This license agreement represents the entire agreement concerning the program between You and the Licensor, and it supersedes any prior proposal, representation, or understanding between the parties. If you do not agree to the terms of this EULA, do not install or use the SOFTWARE PRODUCT.
|
||||
|
||||
The SOFTWARE PRODUCT is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. The SOFTWARE PRODUCT is licensed, not sold.
|
||||
|
||||
1. GRANT OF LICENSE.
|
||||
The SOFTWARE PRODUCT is licensed as follows:
|
||||
(a) Installation and Use.
|
||||
The Licensor grants you the right to install and use copies of the SOFTWARE PRODUCT on your computer running a validly licensed copy of the operating system for which the SOFTWARE PRODUCT was designed.
|
||||
(b) Backup Copies.
|
||||
You may also make copies of the SOFTWARE PRODUCT as may be necessary for backup and archival purposes.
|
||||
|
||||
2. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS.
|
||||
(a) Maintenance of Copyright Notices.
|
||||
You must not remove or alter any copyright notices on any and all copies of the SOFTWARE PRODUCT.
|
||||
(b) Distribution.
|
||||
You may not distribute copies of the SOFTWARE PRODUCT to third parties. Evaluation versions available for download from the Licensor's websites may be freely distributed.
|
||||
(c) Prohibition on Reverse Engineering, Decompilation, and Disassembly.
|
||||
You may not reverse engineer, decompile, or disassemble the SOFTWARE PRODUCT, except and only to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation.
|
||||
(d) Rental.
|
||||
You may not rent, lease, or lend the SOFTWARE PRODUCT.
|
||||
(e) Support Services.
|
||||
The Licensor may provide you with support services related to the SOFTWARE PRODUCT ("Support Services"). Any supplemental software code provided to you as part of the Support Services shall be considered part of the SOFTWARE PRODUCT and subject to the terms and conditions of this EULA.
|
||||
(f) Compliance with Applicable Laws.
|
||||
You must comply with all applicable laws regarding use of the SOFTWARE PRODUCT.
|
||||
(g) Source code.
|
||||
You may only compile and modify the source code of the SOFTWARE PRODUCT for your own personal purpose or to propose a contribution to the SOFTWARE PRODUCT.
|
||||
|
||||
3. TERMINATION
|
||||
Without prejudice to any other rights, the Licensor may terminate this EULA if you fail to comply with the terms and conditions of this EULA. In such event, you must destroy all copies of the SOFTWARE PRODUCT in your possession.
|
||||
|
||||
4. COPYRIGHT
|
||||
All title, including but not limited to copyrights, in and to the SOFTWARE PRODUCT and any copies thereof are owned by the Licensor or its suppliers. All title and intellectual property rights in and to the content which may be accessed through use of the SOFTWARE PRODUCT is the property of the respective content owner and may be protected by applicable copyright or other intellectual property laws and treaties. This EULA grants you no rights to use such content. All rights not expressly granted are reserved by the Licensor.
|
||||
|
||||
5. NO WARRANTIES
|
||||
The Licensor expressly disclaims any warranty for the SOFTWARE PRODUCT. The SOFTWARE PRODUCT is provided 'As Is' without any express or implied warranty of any kind, including but not limited to any warranties of merchantability, noninfringement, or fitness of a particular purpose. The Licensor does not warrant or assume responsibility for the accuracy or completeness of any information, text, graphics, links or other items contained within the SOFTWARE PRODUCT. The Licensor makes no warranties respecting any harm that may be caused by the transmission of a computer virus, worm, time bomb, logic bomb, or other such computer program. The Licensor further expressly disclaims any warranty or representation to Authorized Users or to any third party.
|
||||
|
||||
6. LIMITATION OF LIABILITY
|
||||
In no event shall the Licensor be liable for any damages (including, without limitation, lost profits, business interruption, or lost information) rising out of 'Authorized Users' use of or inability to use the SOFTWARE PRODUCT, even if the Licensor has been advised of the possibility of such damages. In no event will the Licensor be liable for loss of data or for indirect, special, incidental, consequential (including lost profit), or other damages based in contract, tort or otherwise. The Licensor shall have no liability with respect to the content of the SOFTWARE PRODUCT or any part thereof, including but not limited to errors or omissions contained therein, libel, infringements of rights of publicity, privacy, trademark rights, business interruption, personal injury, loss of privacy, moral rights or the disclosure of confidential information.
|
||||
61
PKGBUILD
61
PKGBUILD
@@ -10,10 +10,10 @@
|
||||
# Contributor: Jomar Milan <jomarm@jomarm.com>
|
||||
|
||||
pkgname=aseprite
|
||||
pkgver=1.3.13
|
||||
_skiaver=m102
|
||||
_skiahash=861e4743af
|
||||
pkgrel=12
|
||||
pkgver=1.3.15.5
|
||||
_skiaver=m124
|
||||
_skiahash=08a5439a6b
|
||||
pkgrel=22
|
||||
pkgdesc='Create animated sprites and pixel art'
|
||||
arch=('x86_64')
|
||||
url="https://www.aseprite.org/"
|
||||
@@ -22,14 +22,16 @@ depends=(# ~ Aseprite's direct dependencies ~
|
||||
# pixman is not linked to because we use Skia instead
|
||||
# harfbuzz is linked statically because Aseprite expects an older version
|
||||
cmark libcurl.so libgif.so libjpeg.so zlib libpng 'tinyxml2>=11.0.0' libfreetype.so libarchive.so libfmt.so
|
||||
libwebp.so libwebpmux.so libwebpdemux.so
|
||||
libwebp.so libwebpmux.so libwebpdemux.so libjpeg.so
|
||||
hicolor-icon-theme # For installing Aseprite's icons
|
||||
# ~ Skia deps ~
|
||||
# (Skia links dynamically to HarfBuzz, only Aseprite itself doesn't. >_<)
|
||||
libexpat.so=1-64 libharfbuzz.so=0-64 libgl
|
||||
# Already required by Aseprite: libjpeg-turbo libpng zlib freetype2
|
||||
# These two are only reported by Namcap, but don't seem to be direct dependencies?
|
||||
libfontconfig.so libxcursor)
|
||||
libfontconfig.so libxcursor
|
||||
# Required Dependency
|
||||
libxrandr)
|
||||
makedepends=(# "Meta" dependencies
|
||||
cmake ninja git python
|
||||
# Aseprite (including e.g. LAF)
|
||||
@@ -40,10 +42,13 @@ makedepends=(# "Meta" dependencies
|
||||
# Fuck it, compiling with GCC>=13 is broken and I'm not gonna write a patch to fix it
|
||||
clang
|
||||
)
|
||||
source=("https://github.com/aseprite/aseprite/releases/download/v$pkgver/Aseprite-v$pkgver-Source.zip"
|
||||
source=("https://github.com/aseprite/aseprite/releases/download/v1.3.15.4/Aseprite-v1.3.15.5-Source.zip"
|
||||
# Which branch a given build of Aseprite requires is noted in its `INSTALL.md`
|
||||
"skia-$_skiaver.tar.gz::https://github.com/aseprite/skia/archive/refs/tags/$_skiaver-$_skiahash.tar.gz"
|
||||
aseprite-strings::git+https://github.com/aseprite/strings.git#commit=5499ce2030d831c614f1ce7fdfdaf36a973c21f8
|
||||
# forgive me, I couldn't figure out linker errors.
|
||||
# update commit with skia
|
||||
skia-$_skiaver-icu::git+https://chromium.googlesource.com/chromium/deps/icu.git#commit=a0718d4f121727e30b8d52c7a189ebf5ab52421f
|
||||
aseprite-strings::git+https://github.com/aseprite/strings.git#commit=038a79a039eecee7110a5da5862e15941abea629
|
||||
desktop.patch
|
||||
shared-fmt.patch
|
||||
# Based on https://patch-diff.githubusercontent.com/raw/aseprite/aseprite/pull/2535.patch
|
||||
@@ -54,22 +59,26 @@ source=("https://github.com/aseprite/aseprite/releases/download/v$pkgver/Aseprit
|
||||
optional-pixman.patch
|
||||
fix-shared-tinyxml2.patch
|
||||
shared-libwebp-found.patch
|
||||
include_cstdint.patch)
|
||||
include_cstdint.patch
|
||||
shared_libjpeg-turbo.patch)
|
||||
noextract=("Aseprite-v$pkgver-Source.zip"
|
||||
"skia-$_skiaver.tar.gz") # Don't extract Aseprite or skia sources at the root
|
||||
sha256sums=('c2e639c083d99a5a478ded7c86d9d7f4e4ff9ebebf6fedac7f8bfc94d6bd94c1'
|
||||
'8d76c1ad3693e1fc019eb14d806082148eb4ed7d601474aeeaae601b05a9b3ad'
|
||||
'8ee87f57b5792e5751f63fe37cdda8d29053cd4449e1f533e792e15abcfefa79'
|
||||
"skia-$_skiaver.tar.gz"
|
||||
"aseprite-skia-$_skiaver-flutter.tar.gz") # Don't extract Aseprite or skia sources at the root
|
||||
sha256sums=('2402325af2d6b7f663a5f06f728a6d2a1a2053e17cd97afa483b155689a3e9d4'
|
||||
'c2a567d6b8bb933a92615cbdee0de268d02c3a06863337ee8822eedab9ed66ba'
|
||||
'b52f179a687ef2f91a52b696ab6581f4a37df5e88cb22040fa1ec6567cf0ebb1'
|
||||
'b8c25e0f29d05eefe9e522c32fb0a38db4f0f574adcfb5f20d4324c9e39fbb8c'
|
||||
'8b14e36939e930de581e95abf0591645aa0fcfd47161cf88b062917dbaaef7f9'
|
||||
'c3591d376180d99ff8001c3d549c0bd18ef5e4d95f1755ccaa8e2fd65dd5d2b3'
|
||||
'89cd28a5a90ee9dd42e85866b6f954bde526068d94311b0730a62f00f9cfffdb'
|
||||
'96d75ecc951712e80734f476511658fcc3c91fc1655fe9a01453c3fc8c2a9274'
|
||||
'0f8adb959d7000697af453d6cf5aaf9984b74868008382aad541d2c29871c751'
|
||||
'eb9f544e68b41b5cb1a9ab7a6648db51587e67e94f1a452cb5a84f3d224bf5d0'
|
||||
'c2d14f9738a96a9db3695c00ac3d14b1312b6a595b151bd56e19422c86517654'
|
||||
'ba02fc060dc930cfd66a8903a5d8a59f981753bdf416e91cc77a48c56c86aea3'
|
||||
'72605d6760c29eb98f2d8d8cf2cc9f9f7d7655bcf7cfc944f6a46b0957adbb14'
|
||||
'ce20c8caa61b0e4b478eb08853e1148eba76836027ec04cf5d0f76c4db9ae112')
|
||||
_debug="false"
|
||||
'3381038fc5209600428801fa0b2b05ddee031b0926eaa75c114172e503916cd5'
|
||||
'0fa67d34f63cb4ed472b620ebad0656aeca646cb7f1069b7066ee91e6902fe6c')
|
||||
_debug="true"
|
||||
prepare() {
|
||||
# Extract Aseprite's sources
|
||||
mkdir -p aseprite
|
||||
@@ -77,6 +86,9 @@ prepare() {
|
||||
# Extract Skia's sources
|
||||
mkdir -p skia
|
||||
bsdtar xf skia-$_skiaver.tar.gz --strip-components=1 -C skia
|
||||
# link to skia's icu
|
||||
mkdir -p skia/third_party/externals/
|
||||
ln -s $srcdir/skia-$_skiaver-icu skia/third_party/externals/icu
|
||||
# Fix up Aseprite's desktop integration
|
||||
[[ -n $_debug ]] && echo desktop.patch
|
||||
env -C aseprite patch -tp1 <desktop.patch
|
||||
@@ -98,6 +110,8 @@ prepare() {
|
||||
env -C aseprite/third_party/TinyEXIF patch -tp1 <fix-shared-tinyxml2.patch
|
||||
[[ -n $_debug ]] && echo shared-libwebp-found.patch
|
||||
env -C aseprite patch -tp1 <shared-libwebp-found.patch
|
||||
[[ -n $_debug ]] && echo shared_libjpeg-turbo.patch
|
||||
env -C aseprite patch -tp1 <shared_libjpeg-turbo.patch
|
||||
[[ -n $_debug ]] && echo include_cstdint.patch
|
||||
patch -tp1 <include_cstdint.patch
|
||||
}
|
||||
@@ -107,6 +121,7 @@ build() {
|
||||
local _skiadir="$PWD/skia/obj"
|
||||
export CXX=clang++
|
||||
export CC=clang
|
||||
export CXXFLAGS+=" -std=c++11 -stdlib=libstdc++"
|
||||
export AR=ar
|
||||
export NM=nm
|
||||
# Flags can be found by running `gn args --list "$_skiadir"` from skia's directory.
|
||||
@@ -120,27 +135,25 @@ build() {
|
||||
# skia_build_fuzzers: We don't care about them.
|
||||
# skia_enable_pdf: Not used by Aseprite.
|
||||
# skia_enable_skottie: Not used by Aseprite.
|
||||
# skia_enable_sksl: laf seems to want to use it... but no references are made anywhere.
|
||||
# skia_enable_svg: Not used by Aseprite. It seems it has its own SVG exporter.
|
||||
# skia_use_lib*_{encode,decode}: Aseprite only loads PNG assets, so only libpng is required.
|
||||
# skia_use_expat: Only required for the Android font manager and SVGCanvas/SVGDevice.
|
||||
# skia_use_piex: Not used by Aseprite. Only used for reading RAW files.
|
||||
# skia_use_xps: Not used outside of Windows.
|
||||
# skia_use_zlib: Only used for PDF and RAW files.
|
||||
# skia_use_libgifcodec: Only used for GIFs, which Aseprite doesn't use.
|
||||
# skia_enable_{particles,skparagraph,sktext}: Aseprite does not link against this library.
|
||||
# skia_enable_skparagraph: Aseprite does not link against this library.
|
||||
# skia_use_system_icu: Aseprite wants an `icudtl.dat`, which would require pulling a 1GiB git repo
|
||||
# as a dependency
|
||||
|
||||
# gn is bad software
|
||||
env -C skia gn gen "$_skiadir" --args='is_official_build=true skia_build_fuzzers=false skia_enable_pdf=false skia_enable_skottie=false skia_enable_sksl=false skia_enable_svg=false skia_use_libjpeg_turbo_encode=false skia_use_libjpeg_turbo_decode=false skia_use_libwebp_encode=false skia_use_libwebp_decode=false skia_use_expat=false skia_use_piex=false skia_use_xps=false skia_use_zlib=false skia_use_libgifcodec=false skia_enable_particles=false skia_enable_skparagraph=false skia_enable_sktext=false cc="clang" cxx="clang++"'
|
||||
env -C skia gn gen "$_skiadir" --args='is_official_build=true skia_build_fuzzers=false skia_enable_pdf=false skia_enable_skottie=false skia_enable_svg=false skia_use_libjpeg_turbo_encode=false skia_use_libjpeg_turbo_decode=false skia_use_libwebp_encode=false skia_use_libwebp_decode=false skia_use_expat=false skia_use_piex=false skia_use_xps=false skia_use_zlib=false skia_enable_skparagraph=false skia_use_wuffs=false skia_use_system_icu=false cc="clang" cxx="clang++"'
|
||||
ninja -C "$_skiadir" skia modules
|
||||
|
||||
echo Building Aseprite...
|
||||
# Suppress install messages since we install to a temporary area; `install -v` will do the job
|
||||
cmake -S aseprite -B build -G Ninja -Wno-dev -DCMAKE_INSTALL_MESSAGE=NEVER -DCMAKE_BUILD_TYPE=None \
|
||||
-DENABLE_UPDATER=OFF -DENABLE_{SCRIPTING,WEBSOCKET}=ON \
|
||||
-DLAF_WITH_{EXAMPLES,TESTS}=OFF -DLAF_BACKEND=skia \
|
||||
-DSKIA_DIR="$PWD/skia" -DSKIA_LIBRARY_DIR="$_skiadir" \
|
||||
-DUSE_SHARED_{CMARK,CURL,FMT,GIFLIB,JPEGLIB,ZLIB,LIBPNG,TINYXML,PIXMAN,FREETYPE,HARFBUZZ,LIBARCHIVE,WEBP}=YES \
|
||||
-DUSE_SHARED_{CMARK,CURL,FMT,GIFLIB,LIBJPEG_TURBO,ZLIB,LIBPNG,TINYXML,PIXMAN,FREETYPE,HARFBUZZ,LIBARCHIVE,WEBP}=ON \
|
||||
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 # workaround
|
||||
cmake --build build
|
||||
}
|
||||
@@ -148,6 +161,7 @@ build() {
|
||||
check() {
|
||||
export CXX=clang++
|
||||
export CC=clang
|
||||
export CXXFLAGS+=" -std=c++11 -stdlib=libstdc++"
|
||||
export AR=ar
|
||||
export NM=nm
|
||||
env -C build ctest --output-on-failure
|
||||
@@ -156,6 +170,7 @@ check() {
|
||||
package() {
|
||||
export CXX=clang++
|
||||
export CC=clang
|
||||
export CXXFLAGS+=" -std=c++11 -stdlib=libstdc++"
|
||||
export AR=ar
|
||||
export NM=nm
|
||||
# Now the fun part: components of e.g. `libwebp` get installed as well,
|
||||
|
||||
38
REUSE.toml
Normal file
38
REUSE.toml
Normal file
@@ -0,0 +1,38 @@
|
||||
version = 1
|
||||
|
||||
[[annotations]]
|
||||
path = [
|
||||
"PKGBUILD",
|
||||
"README.md",
|
||||
"keys/**",
|
||||
".SRCINFO",
|
||||
".nvchecker.toml",
|
||||
"*.install",
|
||||
"*.sysusers",
|
||||
"*.tmpfiles",
|
||||
"*.logrotate",
|
||||
"*.pam",
|
||||
"*.service",
|
||||
"*.socket",
|
||||
"*.timer",
|
||||
"*.desktop",
|
||||
"*.hook",
|
||||
]
|
||||
SPDX-FileCopyrightText = "Arch Linux contributors"
|
||||
SPDX-License-Identifier = "0BSD"
|
||||
|
||||
[[annotations]]
|
||||
path = [
|
||||
"desktop.patch",
|
||||
"fix-shared-tinyxml2.patch",
|
||||
"include_cstdint.patch",
|
||||
"optional-pixman.patch",
|
||||
"shared-fmt.patch",
|
||||
"shared-libarchive.patch",
|
||||
"shared-libwebp-found.patch",
|
||||
"shared-libwebp.patch",
|
||||
"shared-skia-deps.patch",
|
||||
"shared_libjpeg-turbo.patch",
|
||||
]
|
||||
SPDX-FileCopyrightText = "Aseprite contributors"
|
||||
SPDX-License-Identifier = "LicenseRef-Aseprite-EULA"
|
||||
@@ -1,15 +1,3 @@
|
||||
diff --git a/aseprite/third_party/json11/json11.cpp b/aseprite/third_party/json11/json11.cpp
|
||||
index b16f409..9a45f8e 100644
|
||||
--- a/aseprite/third_party/json11/json11.cpp
|
||||
+++ b/aseprite/third_party/json11/json11.cpp
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <cstdio>
|
||||
+#include <cstdint>
|
||||
#include <limits>
|
||||
|
||||
namespace json11 {
|
||||
diff --git a/skia/src/sksl/transform/SkSLTransform.h b/skia/src/sksl/transform/SkSLTransform.h
|
||||
index b2d1f90..6a34284 100644
|
||||
--- a/skia/src/sksl/transform/SkSLTransform.h
|
||||
|
||||
@@ -43,9 +43,9 @@ index e1e3bc1ae3..4a37838e95 100644
|
||||
--- a/src/app/CMakeLists.txt
|
||||
+++ b/src/app/CMakeLists.txt
|
||||
@@ -651,8 +651,8 @@ target_link_libraries(app-lib
|
||||
${GIF_LIBRARIES}
|
||||
${PNG_LIBRARIES}
|
||||
${ZLIB_LIBRARIES}
|
||||
libjpeg-turbo
|
||||
+ ${LibArchive_LIBRARIES}
|
||||
json11
|
||||
- archive_static
|
||||
|
||||
51
shared_libjpeg-turbo.patch
Normal file
51
shared_libjpeg-turbo.patch
Normal file
@@ -0,0 +1,51 @@
|
||||
diff --git a/cmake/FindJpegTurbo.cmake b/cmake/FindJpegTurbo.cmake
|
||||
index 33b5204..5f345ef 100644
|
||||
--- a/cmake/FindJpegTurbo.cmake
|
||||
+++ b/cmake/FindJpegTurbo.cmake
|
||||
@@ -8,7 +8,11 @@
|
||||
#
|
||||
|
||||
if(LAF_BACKEND STREQUAL "skia")
|
||||
-
|
||||
+ if(USE_SHARED_LIBJPEG_TURBO)
|
||||
+ find_library(LIBJPEG_TURBO_LIBRARY NAMES libjpeg jpeg REQUIRED)
|
||||
+ include_directories(${LIBJPEG_TURBO_INCLUDE_DIRS})
|
||||
+ set(LIBJPEG_TURBO_LIBRARIES jpeg)
|
||||
+ else()
|
||||
find_library(LIBJPEG_TURBO_LIBRARY NAMES libjpeg jpeg
|
||||
HINTS "${SKIA_LIBRARY_DIR}" NO_DEFAULT_PATH)
|
||||
set(LIBJPEG_TURBO_INCLUDE_DIRS "${SKIA_DIR}/third_party/externals/libjpeg-turbo")
|
||||
@@ -17,7 +21,7 @@ if(LAF_BACKEND STREQUAL "skia")
|
||||
set_target_properties(libjpeg-turbo PROPERTIES
|
||||
IMPORTED_LOCATION "${LIBJPEG_TURBO_LIBRARY}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES ${LIBJPEG_TURBO_INCLUDE_DIRS})
|
||||
-
|
||||
+ endif()
|
||||
else()
|
||||
|
||||
if(WIN32)
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 70ea111..5ef2df3 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -68,6 +68,7 @@ option(USE_SHARED_CMARK "Use your installed copy of cmark" off)
|
||||
option(USE_SHARED_GIFLIB "Use your installed copy of giflib" off)
|
||||
option(USE_SHARED_ZLIB "Use your installed copy of zlib" off)
|
||||
option(USE_SHARED_LIBARCHIVE "Use your installed copy of libarchive" off)
|
||||
+option(USE_SHARED_LIBJPEG_TURBO "Use your installed copy of libjpeg-turbo" off)
|
||||
option(USE_SHARED_LIBPNG "Use your installed copy of libpng" off)
|
||||
option(USE_SHARED_TINYEXIF "Use your installed copy of TinyEXIF" off)
|
||||
option(USE_SHARED_TINYXML "Use your installed copy of tinyxml" off)
|
||||
diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt
|
||||
index 5a84b7c..8a16814 100644
|
||||
--- a/src/app/CMakeLists.txt
|
||||
+++ b/src/app/CMakeLists.txt
|
||||
@@ -769,7 +769,7 @@ target_link_libraries(app-lib
|
||||
${GIF_LIBRARIES}
|
||||
${PNG_LIBRARIES}
|
||||
${ZLIB_LIBRARIES}
|
||||
- libjpeg-turbo
|
||||
+ ${LIBJPEG_TURBO_LIBRARIES}
|
||||
${LibArchive_LIBRARIES}
|
||||
json11
|
||||
${FMT_LIBRARIES}
|
||||
Reference in New Issue
Block a user