-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
148 lines (129 loc) · 3.07 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#!/bin/bash
# Based on original packaging by Popolon <popolon@popolon.org>, Piernov <piernov@piernov.org>, Sergej Pupykin <pupykin.s+arch@gmail.com> and Franco Iacomella <yaco@gnu.org>
# Disable various shellcheck rules that produce false positives in this file.
# Repository rules should be added to the .shellcheckrc file located in the
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
# and https://archiv8.github.io for further information.
# shellcheck disable=SC2034,SC2154
# [ToDo]: Add files: User documentation
# [ToDo]: Add files: Tooling
# [FixMe]: Namcap warnings and errors
# Maintainer: Ross Clark <https://github.com/Archiv8/synfig-core/discussions>
# Contributor: Ross Clark <https://github.com/Archiv8/synfig-core/discussions>
#_langname=""
_relname="synfig"
_partname="core"
#_cvsname=""
# pkgbase=
pkgname="${_relname}-${_partname}"
pkgver=1.5.1
pkgrel=1
# epoch=
pkgdesc="Professional, Open Source 2D Animation Software. Core package providing the CLI renderer"
arch=(
"x86_64"
"armv7h"
"armv8"
"riscv32"
"riscv64")
url="https://www.synfig.org/"
license=("GPL2")
# groups=()
depends=(
"boost-libs"
"cairo"
"ffmpeg4.4"
"fftw"
"fontconfig"
"freetype2"
"glibmm"
"imagemagick"
"libdv"
"libmng"
"libpng"
"libsigc++2.0"
"libtiff"
"libxml++2.6"
"mlt"
"ocl-icd"
"openexr"
"pango"
"etl>=${pkgver}"
"zlib"
)
optdepends=(
"openexr"
"libsigc++"
)
makedepends=(
"boost"
"git"
"intltool"
"opencl-headers"
)
# checkdepends=()
provides=(
"synfig"
)
conflicts=(
"synfig"
"synfig-dev"
"synfig-git"
)
replaces=(
"synfig"
"synfig-dev"
"synfig-git"
)
# backup=()
# options=()
# install=
# changelog=
source=(
"${_relname}-${pkgver}.tar.gz::https://github.com/${_relname}/${_relname}/archive/v${pkgver}.tar.gz"
)
# noextract=()
# validpgpkeys=()
sha512sums=(
"0c1dd53a445f037bcdb742d7c17d1d3a2039e80d3e49f5cd67119fb9792d96b47154874d5be42d36443b0d09c61b7864dfe33ebd5f3998783c54eb3cc936d11b"
)
# prepare() {
# Change to the Synfig Core directory
#cd "${srcdir}/${_relname}-${pkgver}/${pkgname}"
# }
build() {
cd "${srcdir}/${_relname}-${pkgver}/${pkgname}"
export PKG_CONFIG_PATH="/usr/lib/imagemagick6/pkgconfig"
# Bootstrap as not installing using scripts at project root, i.e, ./1-setup-linux-native.sh, 2-build-production.sh
./bootstrap.sh
intltoolize --force --copy
# Run configure script
./configure \
--sysconfdir=/etc/synfig \
--prefix=/usr \
--enable-option-checking \
--disable-silent-rules \
--disable-static \
--enable-dependency-tracking \
--with-imagemagick \
--with-magickpp \
--with-ffmpeg \
--with-libdv \
--with-libavcodec \
--with-freetype \
--with-fontconfig \
--with-openexr \
--with-jpeg \
--with-opencl \
--with-boost
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
# Run make
make 2>&1 | tee make.log
}
# check() {}
package() {
# Change to the Synfig Core directory
cd "${srcdir}/${_relname}-${pkgver}/${pkgname}"
# Install Synfig Core
make DESTDIR="${pkgdir}" install 2>&1 | tee install.log
}