generated from archlinux/template
Compare commits
202 Commits
794e54b574
...
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 | ||
|
|
d963485417 | ||
|
|
8ffacb5334 | ||
|
|
88010297d3 | ||
|
|
7f949cca8a | ||
|
|
c47dab428c | ||
|
|
b645c20fc3 | ||
| a575436c62 | |||
| d78893ff42 | |||
|
|
3da9fd70a7 | ||
|
|
d3ab2df85b | ||
|
|
2822d9127d | ||
|
|
0f6950ba96 | ||
|
|
3e97bcb3d8 | ||
|
|
18db0ba033 | ||
|
|
06746f14f7 | ||
|
|
39b07a9297 | ||
|
|
bb62a30301 | ||
|
|
eb39bd7906 | ||
|
|
4d1f436841 | ||
|
|
efdd9a8532 | ||
|
|
a2faf88242 | ||
|
|
3be0d92f58 | ||
|
|
ffed33147e | ||
|
|
8205cfd928 | ||
|
|
93c2e82a63 | ||
|
|
16f6266c92 | ||
|
|
18d6adea1e | ||
|
|
3b7d5ac9de | ||
|
|
062d51bad0 | ||
|
|
8bbe712b15 | ||
|
|
1d77599e42 | ||
|
|
fc1ea126c9 | ||
|
|
5c01d1c231 | ||
|
|
7a286d4331 | ||
|
|
8ac7a09624 | ||
|
|
e509181aa9 | ||
|
|
4cb9d1b0e8 | ||
|
|
abe5adccd4 | ||
|
|
88d323a39c | ||
|
|
edcb2c0ed8 | ||
|
|
93b4b55bfa | ||
|
|
e119c72df4 | ||
|
|
5b5f507b12 | ||
|
|
871d277dd6 | ||
|
|
0b07e635bd | ||
|
|
02b39fb0a6 | ||
|
|
affde34216 | ||
|
|
b5cad094cb | ||
|
|
bf5e8bec21 | ||
|
|
0ae586ef92 | ||
|
|
8f3a87e054 | ||
|
|
e6b590fcae | ||
|
|
04b6464785 | ||
|
|
3e063a0a02 | ||
|
|
b155cd46e4 | ||
|
|
8c329cd43e | ||
|
|
4db3b3c183 | ||
|
|
e02f37502a | ||
|
|
950886399b | ||
|
|
6624751d86 | ||
|
|
983811ed8b | ||
|
|
ae2bd412dc | ||
|
|
525a99edef | ||
|
|
040afdc1ea | ||
|
|
77f0ab44be | ||
|
|
659376d196 | ||
|
|
aae81b3fb4 | ||
|
|
e358df22d7 | ||
|
|
71f865251f | ||
|
|
9777b005bc | ||
|
|
ff72515550 | ||
|
|
f5159409ca | ||
|
|
1539ec6a7c | ||
|
|
2123a4ee68 | ||
|
|
7f62495148 | ||
|
|
c83b6597a8 | ||
|
|
3c989507b1 | ||
|
|
34059c175c | ||
|
|
631d903e53 | ||
|
|
7aa9d99c25 | ||
|
|
f6cc220db5 | ||
|
|
acea23a10b | ||
|
|
265487a194 | ||
|
|
5571395d68 | ||
|
|
e1fbe636bc | ||
|
|
20382399c1 | ||
|
|
9078bc1fac | ||
|
|
a58e729f86 | ||
|
|
f1f431dac8 | ||
|
|
e61b3c9b5b | ||
|
|
4bbfab660a | ||
|
|
4bf904749f | ||
|
|
e576abc19c | ||
|
|
42407660df | ||
|
|
7fb517544c | ||
|
|
cfffd018ed | ||
|
|
a251c85db5 | ||
|
|
bfc177e10d | ||
|
|
31fa464704 | ||
|
|
cd33bb9f80 | ||
|
|
bbac323ada | ||
|
|
56bf57c504 | ||
|
|
280cf67c6b | ||
|
|
2e95f4def9 | ||
|
|
e9cc513398 | ||
|
|
75fb3cc5f2 | ||
|
|
2e0004396d | ||
|
|
bfc7722cf9 | ||
|
|
c45e175f87 | ||
|
|
0a3859dc23 | ||
|
|
2a4321b4e0 | ||
|
|
6e1d44e0e7 | ||
|
|
b9cc5d332e | ||
|
|
3bc48e49e0 | ||
|
|
9ab6b40eb3 | ||
|
|
ea6a429477 | ||
|
|
d38210d079 | ||
|
|
8b1477cd2a | ||
|
|
6b9d4761f6 | ||
|
|
df04467285 | ||
|
|
b0c2094df4 | ||
|
|
d43f492ccf | ||
|
|
6ef79206f6 | ||
|
|
6172d5d986 | ||
|
|
ad92c64740 | ||
|
|
db81874510 | ||
|
|
4786021ddd | ||
|
|
2d3ed17c56 | ||
|
|
91e67f2178 | ||
|
|
d699465f50 | ||
|
|
46ee8df8b2 | ||
|
|
f3a56dd79d | ||
|
|
c26bd3e56f | ||
|
|
03fef6d621 | ||
|
|
e964b51676 | ||
|
|
1849f02e6a | ||
|
|
c6c5dea28c | ||
|
|
7f2175e6bf | ||
|
|
cf0996c4f2 | ||
|
|
9ec2eda088 | ||
|
|
c8db098087 | ||
|
|
3e04164a49 | ||
|
|
09d3e38579 | ||
|
|
53bb60b0c9 | ||
|
|
cdf8471f44 | ||
|
|
72bf70388f | ||
|
|
1cbf212d6b | ||
|
|
0eba7a583e | ||
|
|
429827020c | ||
|
|
e20f36faa9 | ||
|
|
c071ace64d | ||
|
|
f21a076d51 | ||
|
|
3216b95e47 | ||
|
|
9481f0f6bf | ||
|
|
9f47afc144 | ||
|
|
8d601df91e | ||
|
|
cf7b407078 | ||
|
|
241db80540 | ||
|
|
3bcf189c37 | ||
|
|
08c4945481 | ||
|
|
3e9e4745d1 | ||
|
|
df8fc65618 | ||
|
|
8a0109c897 |
69
.SRCINFO
Normal file
69
.SRCINFO
Normal file
@@ -0,0 +1,69 @@
|
||||
pkgbase = aseprite
|
||||
pkgdesc = Create animated sprites and pixel art
|
||||
pkgver = 1.3.15.5
|
||||
pkgrel = 1
|
||||
url = https://www.aseprite.org/
|
||||
arch = x86_64
|
||||
license = LicenseRef-Aseprite-EULA
|
||||
makedepends = cmake
|
||||
makedepends = ninja
|
||||
makedepends = git
|
||||
makedepends = python
|
||||
makedepends = libxi
|
||||
makedepends = gn
|
||||
makedepends = harfbuzz-icu
|
||||
makedepends = clang
|
||||
depends = cmark
|
||||
depends = libcurl.so
|
||||
depends = libgif.so
|
||||
depends = libjpeg.so
|
||||
depends = zlib
|
||||
depends = libpng
|
||||
depends = tinyxml2>=11.0.0
|
||||
depends = libfreetype.so
|
||||
depends = libarchive.so
|
||||
depends = libfmt.so
|
||||
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
|
||||
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
|
||||
source = shared-libwebp.patch
|
||||
source = shared-skia-deps.patch
|
||||
source = optional-pixman.patch
|
||||
source = fix-shared-tinyxml2.patch
|
||||
source = shared-libwebp-found.patch
|
||||
source = include_cstdint.patch
|
||||
source = shared_libjpeg-turbo.patch
|
||||
sha256sums = 2402325af2d6b7f663a5f06f728a6d2a1a2053e17cd97afa483b155689a3e9d4
|
||||
sha256sums = c2a567d6b8bb933a92615cbdee0de268d02c3a06863337ee8822eedab9ed66ba
|
||||
sha256sums = b52f179a687ef2f91a52b696ab6581f4a37df5e88cb22040fa1ec6567cf0ebb1
|
||||
sha256sums = b8c25e0f29d05eefe9e522c32fb0a38db4f0f574adcfb5f20d4324c9e39fbb8c
|
||||
sha256sums = 8b14e36939e930de581e95abf0591645aa0fcfd47161cf88b062917dbaaef7f9
|
||||
sha256sums = c3591d376180d99ff8001c3d549c0bd18ef5e4d95f1755ccaa8e2fd65dd5d2b3
|
||||
sha256sums = 96d75ecc951712e80734f476511658fcc3c91fc1655fe9a01453c3fc8c2a9274
|
||||
sha256sums = 0f8adb959d7000697af453d6cf5aaf9984b74868008382aad541d2c29871c751
|
||||
sha256sums = eb9f544e68b41b5cb1a9ab7a6648db51587e67e94f1a452cb5a84f3d224bf5d0
|
||||
sha256sums = c2d14f9738a96a9db3695c00ac3d14b1312b6a595b151bd56e19422c86517654
|
||||
sha256sums = ba02fc060dc930cfd66a8903a5d8a59f981753bdf416e91cc77a48c56c86aea3
|
||||
sha256sums = 72605d6760c29eb98f2d8d8cf2cc9f9f7d7655bcf7cfc944f6a46b0957adbb14
|
||||
sha256sums = 3381038fc5209600428801fa0b2b05ddee031b0926eaa75c114172e503916cd5
|
||||
sha256sums = 0fa67d34f63cb4ed472b620ebad0656aeca646cb7f1069b7066ee91e6902fe6c
|
||||
|
||||
pkgname = aseprite
|
||||
4
.nvchecker.toml
Normal file
4
.nvchecker.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[aseprite]
|
||||
source = "regex"
|
||||
regex = 'v(\d+\.\d+\.\d+)'
|
||||
url = "https://github.com/aseprite/aseprite/tags"
|
||||
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.
|
||||
209
PKGBUILD
Normal file
209
PKGBUILD
Normal file
@@ -0,0 +1,209 @@
|
||||
# Maintainer: Imperator Storm <ImperatorStorm11@protonmail.com>
|
||||
# Maintainer: Eldred Habert <me@eldred.fr>
|
||||
# Contributor: Fredrick Brennan <copypaste@kittens.ph>
|
||||
# Contributor: Andrew Bueide <abueide@protonmail.com>
|
||||
# Contributor: rouhannb <rouhannb@protonmail.com>
|
||||
# Contributor: Wilson E. Alvarez <wilson.e.alvarez1@gmail.com>
|
||||
# Contributor: Benoit Favre <benoit.favre@gmail.com>
|
||||
# Contributor: Alexander Rødseth <rodseth@gmail.com>
|
||||
# Contributor: Kamil Biduś <kamil.bidus@gmail.com>
|
||||
# Contributor: Jomar Milan <jomarm@jomarm.com>
|
||||
|
||||
pkgname=aseprite
|
||||
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/"
|
||||
license=('LicenseRef-Aseprite-EULA')
|
||||
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 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
|
||||
# Required Dependency
|
||||
libxrandr)
|
||||
makedepends=(# "Meta" dependencies
|
||||
cmake ninja git python
|
||||
# Aseprite (including e.g. LAF)
|
||||
libxi
|
||||
# Skia
|
||||
gn harfbuzz-icu
|
||||
# TODO: Benchmark clang v gcc
|
||||
# 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/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"
|
||||
# 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
|
||||
shared-libarchive.patch
|
||||
# Based on https://patch-diff.githubusercontent.com/raw/aseprite/aseprite/pull/2523.patch
|
||||
shared-libwebp.patch
|
||||
shared-skia-deps.patch
|
||||
optional-pixman.patch
|
||||
fix-shared-tinyxml2.patch
|
||||
shared-libwebp-found.patch
|
||||
include_cstdint.patch
|
||||
shared_libjpeg-turbo.patch)
|
||||
noextract=("Aseprite-v$pkgver-Source.zip"
|
||||
"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'
|
||||
'96d75ecc951712e80734f476511658fcc3c91fc1655fe9a01453c3fc8c2a9274'
|
||||
'0f8adb959d7000697af453d6cf5aaf9984b74868008382aad541d2c29871c751'
|
||||
'eb9f544e68b41b5cb1a9ab7a6648db51587e67e94f1a452cb5a84f3d224bf5d0'
|
||||
'c2d14f9738a96a9db3695c00ac3d14b1312b6a595b151bd56e19422c86517654'
|
||||
'ba02fc060dc930cfd66a8903a5d8a59f981753bdf416e91cc77a48c56c86aea3'
|
||||
'72605d6760c29eb98f2d8d8cf2cc9f9f7d7655bcf7cfc944f6a46b0957adbb14'
|
||||
'3381038fc5209600428801fa0b2b05ddee031b0926eaa75c114172e503916cd5'
|
||||
'0fa67d34f63cb4ed472b620ebad0656aeca646cb7f1069b7066ee91e6902fe6c')
|
||||
_debug="true"
|
||||
prepare() {
|
||||
# Extract Aseprite's sources
|
||||
mkdir -p aseprite
|
||||
bsdtar -xf "${noextract[0]}" -C aseprite
|
||||
# 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
|
||||
# Allow using more shared libs
|
||||
[[ -n $_debug ]] && echo shared-fmt.patch
|
||||
env -C aseprite patch -tp1 <shared-fmt.patch
|
||||
[[ -n $_debug ]] && echo shared-libarchive.patch
|
||||
env -C aseprite patch -tp1 <shared-libarchive.patch
|
||||
[[ -n $_debug ]] && echo shared-libwebp.patch
|
||||
env -C aseprite patch -tp1 <shared-libwebp.patch
|
||||
[[ -n $_debug ]] && echo shared-pixman.patch
|
||||
env -C aseprite patch -tp1 <optional-pixman.patch
|
||||
# Their "FindSkia" module forcefully tries to use Skia's FreeType and HarfBuzz,
|
||||
# but we don't clone those because we use the shared ones. Avoid overwriting the settings instead.
|
||||
[[ -n $_debug ]] && echo shared-skia-deps.patch
|
||||
env -C aseprite patch -tp1 <shared-skia-deps.patch
|
||||
# TinyEXIF cannot find tinyxml2 otherwise
|
||||
[[ -n $_debug ]] && echo fix-shared-tinyxml2.patch
|
||||
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
|
||||
}
|
||||
|
||||
build() {
|
||||
echo Building Skia...
|
||||
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.
|
||||
# (Pipe the output somewhere, there's a LOT of args.)
|
||||
#
|
||||
# The flags are chosen to provide the API required by Aseprite and nothing else (if possible),
|
||||
# so as to reduce the compilation time and final binary size.
|
||||
#
|
||||
# Individual rationales:
|
||||
# is_official_build: Suggested by the build instructions.
|
||||
# skia_build_fuzzers: We don't care about them.
|
||||
# skia_enable_pdf: Not used by Aseprite.
|
||||
# skia_enable_skottie: Not used by Aseprite.
|
||||
# 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_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_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,LIBJPEG_TURBO,ZLIB,LIBPNG,TINYXML,PIXMAN,FREETYPE,HARFBUZZ,LIBARCHIVE,WEBP}=ON \
|
||||
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 # workaround
|
||||
cmake --build 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
|
||||
}
|
||||
|
||||
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,
|
||||
# since we've had to compile it. But we don't want them.
|
||||
# So, install normally, and then cherry-pick Aseprite's files out of that.
|
||||
# Use a whitelist to prefer installing not enough (breakage goes noticed),
|
||||
# instead of too much (cruft rarely goes noticed). Also hope that it doesn't break :)
|
||||
cmake --install build --prefix=staging --strip
|
||||
|
||||
# Install the binary and its `.desktop` file
|
||||
install -vDm 755 staging/bin/aseprite "$pkgdir/usr/bin/aseprite"
|
||||
install -vDm 644 aseprite/src/desktop/linux/aseprite.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
|
||||
install -vDm 644 aseprite/src/desktop/linux/mime/aseprite.xml "$pkgdir/usr/share/mime/packages/$pkgname.xml"
|
||||
# Thumbnailer
|
||||
install -vDm 755 aseprite/src/desktop/linux/aseprite-thumbnailer "$pkgdir/usr/bin/aseprite-thumbnailer"
|
||||
install -vDm 644 aseprite/src/desktop/linux/gnome/aseprite.thumbnailer "$pkgdir/usr/share/thumbnailers/aseprite.thumbnailer"
|
||||
# Install the icons in the correct directory (which is not the default)
|
||||
local _size
|
||||
for _size in 16 32 48 64 128 256; do
|
||||
# The installed icon's name is taken from the `.desktop` file
|
||||
install -vDm 644 staging/share/aseprite/data/icons/ase$_size.png "$pkgdir/usr/share/icons/hicolor/${_size}x$_size/apps/aseprite.png"
|
||||
done
|
||||
# Delete the icons to avoid copying them in two places (they aren't used by Aseprite itself)
|
||||
rm -rf staging/share/aseprite/data/icons
|
||||
# Install all of the program's data
|
||||
cp -vrt "$pkgdir/usr/share" staging/share/aseprite
|
||||
# Also install the licenses
|
||||
install -vDm 644 -t "$pkgdir/usr/share/licenses/$pkgname" aseprite/{EULA.txt,docs/LICENSES.md}
|
||||
# Copy the font's license, but leave it in the font directory as well (probably doesn't hurt)
|
||||
install -vm 644 aseprite/data/fonts/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/font.txt"
|
||||
# Copy translations
|
||||
mkdir -p "$pkgdir/usr/share/$pkgname/data/strings/"
|
||||
cp -vt "$pkgdir/usr/share/$pkgname/data/strings/" aseprite-strings/*.ini
|
||||
# Copy translations' license
|
||||
install -vm 644 aseprite-strings/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/translations.txt"
|
||||
}
|
||||
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"
|
||||
25
desktop.patch
Normal file
25
desktop.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
diff --git a/src/desktop/linux/aseprite.desktop b/src/desktop/linux/aseprite.desktop
|
||||
index e23999db8..803a1fc75 100644
|
||||
--- a/src/desktop/linux/aseprite.desktop
|
||||
+++ b/src/desktop/linux/aseprite.desktop
|
||||
@@ -5,7 +5,7 @@ GenericName=Sprite Editor
|
||||
Comment=Animated sprite editor & pixel art tool
|
||||
Icon=aseprite
|
||||
Categories=Graphics;2DGraphics;RasterGraphics
|
||||
-Exec=aseprite %U
|
||||
+Exec=aseprite %F
|
||||
TryExec=aseprite
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
diff --git a/src/desktop/linux/mime/aseprite.xml b/src/desktop/linux/mime/aseprite.xml
|
||||
index 52b2adb92..a656cb3b1 100644
|
||||
--- a/src/desktop/linux/mime/aseprite.xml
|
||||
+++ b/src/desktop/linux/mime/aseprite.xml
|
||||
@@ -7,6 +7,6 @@
|
||||
</magic>
|
||||
<glob pattern="*.ase"/>
|
||||
<glob pattern="*.aseprite"/>
|
||||
- <icon name="aseprite"/>
|
||||
+ <icon name="image-x-aseprite"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
24
fix-shared-tinyxml2.patch
Normal file
24
fix-shared-tinyxml2.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 674dbd6..1ba8329 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 3.1)
|
||||
project(TinyEXIF)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
+find_package(tinyxml2 REQUIRED)
|
||||
+
|
||||
#CMAKE_BUILD_TOOL
|
||||
|
||||
################################
|
||||
@@ -141,6 +143,10 @@ if(BUILD_STATIC_LIBS)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
+ # export targets for find_package config mode
|
||||
+ export(TARGETS TinyEXIFstatic
|
||||
+ FILE ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}Targets.cmake)
|
||||
+
|
||||
install(TARGETS TinyEXIFstatic
|
||||
EXPORT ${CMAKE_PROJECT_NAME}Targets
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
11
include_cstdint.patch
Normal file
11
include_cstdint.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
+++ b/skia/src/sksl/transform/SkSLTransform.h
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
+#include <cstdint>
|
||||
|
||||
namespace SkSL {
|
||||
23
optional-pixman.patch
Normal file
23
optional-pixman.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f16f09660d..40065905d3 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -271,16 +271,18 @@
|
||||
include_directories(${TINYXML_INCLUDE_DIR})
|
||||
|
||||
# pixman
|
||||
+if(NOT LAF_BACKEND STREQUAL "skia")
|
||||
if(USE_SHARED_PIXMAN)
|
||||
find_library(PIXMAN_LIBRARY NAMES pixman pixman-1)
|
||||
find_path(PIXMAN_INCLUDE_DIR NAMES pixman.h PATH_SUFFIXES pixman-1)
|
||||
else()
|
||||
set(PIXMAN_LIBRARY pixman)
|
||||
set(PIXMAN_INCLUDE_DIR
|
||||
${PIXMAN_DIR}/pixman
|
||||
${CMAKE_BINARY_DIR}) # For pixman-version.h
|
||||
endif()
|
||||
include_directories(${PIXMAN_INCLUDE_DIR})
|
||||
+endif()
|
||||
|
||||
# freetype
|
||||
if(USE_SHARED_FREETYPE)
|
||||
2
prerun.sh
Normal file → Executable file
2
prerun.sh
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
git add remote aur https://aur.archlinux.org/aseprite.git
|
||||
git remote add aur https://aur.archlinux.org/aseprite.git
|
||||
git fetch aur
|
||||
git merge -X theirs --no-edit aur/master
|
||||
|
||||
|
||||
71
shared-fmt.patch
Normal file
71
shared-fmt.patch
Normal file
@@ -0,0 +1,71 @@
|
||||
--- a/CMakeLists.txt 2022-01-08 00:37:08.165330523 +0100
|
||||
+++ b/CMakeLists.txt 2022-01-08 00:52:41.163585173 +0100
|
||||
@@ -54,6 +54,7 @@
|
||||
|
||||
option(USE_SHARED_CMARK "Use your installed copy of cmark" off)
|
||||
option(USE_SHARED_CURL "Use your installed copy of curl" off)
|
||||
+option(USE_SHARED_FMT "Use your installed copy of fmt" off)
|
||||
option(USE_SHARED_GIFLIB "Use your installed copy of giflib" off)
|
||||
option(USE_SHARED_JPEGLIB "Use your installed copy of jpeglib" off)
|
||||
option(USE_SHARED_ZLIB "Use your installed copy of zlib" off)
|
||||
@@ -165,6 +165,7 @@
|
||||
set(SOURCE_DATA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/data)
|
||||
set(CMARK_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/cmark)
|
||||
set(CURL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/curl)
|
||||
+set(FMT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/fmt)
|
||||
set(GIFLIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/giflib)
|
||||
set(LIBJPEG_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/jpeg)
|
||||
set(LIBPNG_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/libpng)
|
||||
@@ -204,6 +205,15 @@
|
||||
set(CURL_STATICLIB ON BOOL)
|
||||
endif()
|
||||
|
||||
+if(USE_SHARED_FMT)
|
||||
+ find_package(FMT REQUIRED)
|
||||
+ set(FMT_LIBRARIES fmt::fmt)
|
||||
+else()
|
||||
+ set(FMT_FOUND)
|
||||
+ set(FMT_LIBRARIES fmt)
|
||||
+ # No need to include extra directories, actually
|
||||
+endif()
|
||||
+
|
||||
# zlib
|
||||
if(USE_SHARED_ZLIB)
|
||||
find_package(ZLIB REQUIRED)
|
||||
--- a/src/app/CMakeLists.txt 2022-01-08 00:37:07.378671200 +0100
|
||||
+++ b/src/app/CMakeLists.txt 2022-01-08 00:53:13.669969512 +0100
|
||||
@@ -741,7 +741,7 @@ target_link_libraries(app-lib
|
||||
${HARFBUZZ_LIBRARIES}
|
||||
json11
|
||||
archive_static
|
||||
- fmt
|
||||
+ ${FMT_LIBRARIES}
|
||||
tinyexpr
|
||||
qoi)
|
||||
|
||||
if(ENABLE_PSD)
|
||||
--- a/src/dio/CMakeLists.txt 2022-01-08 00:41:50.712726972 +0100
|
||||
+++ b/src/dio/CMakeLists.txt 2022-01-08 00:53:39.936408022 +0100
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
target_link_libraries(dio-lib
|
||||
${ZLIB_LIBRARIES}
|
||||
- fmt
|
||||
+ ${FMT_LIBRARIES}
|
||||
flic-lib
|
||||
laf-base
|
||||
fixmath-lib
|
||||
--- a/third_party/CMakeLists.txt 2022-01-08 00:37:08.165330523 +0100
|
||||
+++ b/third_party/CMakeLists.txt 2022-01-08 00:54:30.455969136 +0100
|
||||
@@ -106,7 +106,10 @@
|
||||
endif()
|
||||
|
||||
add_subdirectory(simpleini)
|
||||
-add_subdirectory(fmt)
|
||||
+
|
||||
+if(NOT USE_SHARED_FMT)
|
||||
+ add_subdirectory(fmt)
|
||||
+endif()
|
||||
|
||||
# Add cmark without tests
|
||||
if(NOT USE_SHARED_CMARK)
|
||||
75
shared-libarchive.patch
Normal file
75
shared-libarchive.patch
Normal file
@@ -0,0 +1,75 @@
|
||||
From cf84155eb143d821963e8fdf18781dfa164eac9b Mon Sep 17 00:00:00 2001
|
||||
From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
|
||||
Date: Fri, 9 Oct 2020 02:18:36 +0300
|
||||
Subject: [PATCH] Make LibArchive as shared library dependency
|
||||
|
||||
---
|
||||
CMakeLists.txt | 11 +++++++++++
|
||||
src/app/CMakeLists.txt | 2 +-
|
||||
third_party/CMakeLists.txt | 22 ++++++++++++----------
|
||||
3 files changed, 24 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9cb5a2cdfb..9d95936f36 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -60,6 +60,7 @@ option(USE_SHARED_CURL "Use your installed copy of curl" off)
|
||||
option(USE_SHARED_GIFLIB "Use your installed copy of giflib" off)
|
||||
option(USE_SHARED_JPEGLIB "Use your installed copy of jpeglib" 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_LIBPNG "Use your installed copy of libpng" off)
|
||||
option(USE_SHARED_TINYXML "Use your installed copy of tinyxml" off)
|
||||
option(USE_SHARED_PIXMAN "Use your installed copy of pixman" off)
|
||||
@@ -200,6 +201,16 @@ else()
|
||||
endif()
|
||||
include_directories(${ZLIB_INCLUDE_DIRS})
|
||||
|
||||
+# libarchive
|
||||
+if(USE_SHARED_LIBARCHIVE)
|
||||
+ find_package(LibArchive REQUIRED)
|
||||
+else()
|
||||
+ set(LibArchive_FOUND)
|
||||
+ set(LibArchive_LIBRARIES archive_static)
|
||||
+ set(LibArchive_INCLUDE_DIRS $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libarchive/libarchive>)
|
||||
+endif()
|
||||
+include_directories(${LibArchive_INCLUDE_DIRS})
|
||||
+
|
||||
# libpng
|
||||
if(USE_SHARED_LIBPNG)
|
||||
find_package(PNG REQUIRED)
|
||||
diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt
|
||||
index e1e3bc1ae3..4a37838e95 100644
|
||||
--- a/src/app/CMakeLists.txt
|
||||
+++ b/src/app/CMakeLists.txt
|
||||
@@ -651,8 +651,8 @@ target_link_libraries(app-lib
|
||||
${PNG_LIBRARIES}
|
||||
${ZLIB_LIBRARIES}
|
||||
libjpeg-turbo
|
||||
+ ${LibArchive_LIBRARIES}
|
||||
json11
|
||||
- archive_static
|
||||
${FMT_LIBRARIES}
|
||||
tinyexpr
|
||||
qoi)
|
||||
|
||||
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
|
||||
index ffd1c0cfcd..4839d4097c 100644
|
||||
--- a/third_party/CMakeLists.txt.orig
|
||||
+++ b/third_party/CMakeLists.txt
|
||||
@@ -110,6 +110,7 @@ endif()
|
||||
add_subdirectory(json11)
|
||||
|
||||
# libarchive
|
||||
+if(NOT USE_SHARED_LIBARCHIVE)
|
||||
set(HAVE_WCSCPY 1)
|
||||
set(HAVE_WCSLEN 1)
|
||||
|
||||
@@ -126,6 +127,7 @@ set(ENABLE_CPIO OFF CACHE BOOL "Enable cpio building")
|
||||
add_subdirectory(libarchive)
|
||||
target_include_directories(archive_static INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libarchive/libarchive>)
|
||||
+endif()
|
||||
|
||||
# benchmark
|
||||
if(ENABLE_BENCHMARKS)
|
||||
11
shared-libwebp-found.patch
Normal file
11
shared-libwebp-found.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
diff -ura aseprite.orig/CMakeLists.txt aseprite.new/CMakeLists.txt
|
||||
--- aseprite.orig/CMakeLists.txt 2024-12-25 12:50:48.325195746 -0800
|
||||
+++ aseprite.new/CMakeLists.txt 2024-12-25 12:51:47.829384607 -0800
|
||||
@@ -361,6 +361,7 @@
|
||||
find_library(WEBPMUX_LIBRARY NAMES webpmux)
|
||||
set(WEBP_LIBRARIES ${WEBP_LIBRARY} ${WEBPDEMUX_LIBRARY} ${WEBPMUX_LIBRARY})
|
||||
find_path(WEBP_INCLUDE_DIRS NAMES decode.h PATH_SUFFIXES webp)
|
||||
+ set(WEBP_FOUND ON)
|
||||
else()
|
||||
find_library(WEBP_LIBRARIES webp
|
||||
NAMES libwebp # required for Windows
|
||||
63
shared-libwebp.patch
Normal file
63
shared-libwebp.patch
Normal file
@@ -0,0 +1,63 @@
|
||||
From ca9e20a87be6dcc8d9b97841535b2320d2eb2f91 Mon Sep 17 00:00:00 2001
|
||||
From: Drauthius <albert@diserholt.com>
|
||||
Date: Sat, 26 Sep 2020 10:40:13 +0200
|
||||
Subject: [PATCH] Shared webp library
|
||||
|
||||
Making optional linking with shared system webp library with
|
||||
-DUSE_SHARED_WEBP option.
|
||||
---
|
||||
CMakeLists.txt | 12 +++++++++---
|
||||
third_party/CMakeLists.txt | 2 +-
|
||||
2 files changed, 10 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index af077f6..fed17ff 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -58,6 +58,7 @@ option(USE_SHARED_TINYXML "Use your installed copy of tinyxml" off)
|
||||
option(USE_SHARED_PIXMAN "Use your installed copy of pixman" off)
|
||||
option(USE_SHARED_FREETYPE "Use shared FreeType library" off)
|
||||
option(USE_SHARED_HARFBUZZ "Use shared HarfBuzz library" off)
|
||||
+option(USE_SHARED_WEBP "Use your installed copy of webp" off)
|
||||
option(ENABLE_ASEPRITE_EXE "Compile main Aseprite executable" on)
|
||||
option(ENABLE_MEMLEAK "Enable memory-leaks detector (only for developers)" off)
|
||||
option(ENABLE_NEWS "Enable the news in Home tab" on)
|
||||
@@ -352,7 +352,13 @@ add_subdirectory(laf)
|
||||
# libwebp
|
||||
if(ENABLE_WEBP)
|
||||
# Use libwebp from Skia
|
||||
- if(LAF_BACKEND STREQUAL "skia")
|
||||
+ if(USE_SHARED_WEBP)
|
||||
+ find_library(WEBP_LIBRARY NAMES webp)
|
||||
+ find_library(WEBPDEMUX_LIBRARY NAMES webpdemux)
|
||||
+ find_library(WEBPMUX_LIBRARY NAMES webpmux)
|
||||
+ set(WEBP_LIBRARIES ${WEBP_LIBRARY} ${WEBPDEMUX_LIBRARY} ${WEBPMUX_LIBRARY})
|
||||
+ find_path(WEBP_INCLUDE_DIRS NAMES decode.h PATH_SUFFIXES webp)
|
||||
+ else()
|
||||
find_library(WEBP_LIBRARIES webp
|
||||
NAMES libwebp # required for Windows
|
||||
PATHS "${SKIA_LIBRARY_DIR}" NO_DEFAULT_PATH)
|
||||
@@ -362,10 +368,6 @@ if(ENABLE_WEBP)
|
||||
else()
|
||||
set(WEBP_FOUND OFF)
|
||||
endif()
|
||||
- else()
|
||||
- set(WEBP_FOUND ON)
|
||||
- set(WEBP_LIBRARIES webp webpdemux libwebpmux)
|
||||
- set(WEBP_INCLUDE_DIR ${LIBWEBP_DIR}/src)
|
||||
endif()
|
||||
endif()
|
||||
message(STATUS "aseprite libwebp: ${WEBP_LIBRARIES}")
|
||||
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
|
||||
index 4839d4097c..e8c3e83cbc 100644
|
||||
--- a/third_party/CMakeLists.txt
|
||||
+++ b/third_party/CMakeLists.txt
|
||||
@@ -32,7 +32,7 @@ if(NOT USE_SHARED_GIFLIB)
|
||||
add_subdirectory(giflib)
|
||||
endif()
|
||||
|
||||
-if(ENABLE_WEBP AND NOT LAF_BACKEND STREQUAL "skia")
|
||||
+if(ENABLE_WEBP AND NOT LAF_BACKEND STREQUAL "skia" AND NOT USE_SHARED_WEBP)
|
||||
set(WEBP_BUILD_EXTRAS OFF CACHE BOOL "Build extras.")
|
||||
add_subdirectory(libwebp)
|
||||
endif()
|
||||
21
shared-skia-deps.patch
Normal file
21
shared-skia-deps.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
--- src/laf/cmake/FindSkia.cmake.orig 2022-01-08 02:15:13.417619266 +0100
|
||||
+++ src/laf/cmake/FindSkia.cmake 2022-01-08 02:15:43.603960491 +0100
|
||||
@@ -32,14 +32,18 @@
|
||||
# SkShaper module + freetype + harfbuzz
|
||||
find_library(SKSHAPER_LIBRARY skshaper PATH "${SKIA_LIBRARY_DIR}")
|
||||
|
||||
+if(NOT USE_SHARED_FREETYPE)
|
||||
set(FREETYPE_FOUND ON)
|
||||
find_library(FREETYPE_LIBRARY freetype2 PATH "${SKIA_LIBRARY_DIR}" NO_DEFAULT_PATH)
|
||||
set(FREETYPE_LIBRARIES ${FREETYPE_LIBRARY})
|
||||
set(FREETYPE_INCLUDE_DIRS "${SKIA_DIR}/third_party/externals/freetype/include")
|
||||
+endif()
|
||||
|
||||
+if(NOT USE_SHARED_HARFBUZZ)
|
||||
find_library(HARFBUZZ_LIBRARY harfbuzz PATH "${SKIA_LIBRARY_DIR}" NO_DEFAULT_PATH)
|
||||
set(HARFBUZZ_LIBRARIES ${HARFBUZZ_LIBRARY})
|
||||
set(HARFBUZZ_INCLUDE_DIRS "${SKIA_DIR}/third_party/externals/harfbuzz/src")
|
||||
+endif()
|
||||
|
||||
set(SKIA_LIBRARIES
|
||||
${SKIA_LIBRARY}
|
||||
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