blob: e53fb4224d6f68aeebb46451ad3c4eab16093e30 (
plain)
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
|
# Maintainer: arch1t3cht <arch1t3cht@gmail.com>
# Maintainer: Qirui Wang <wqr.prg@gmail.com>
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
pkgname=aegisub-git
pkgver=3.2.2.r407.6f546951b
pkgrel=5
pkgdesc='A general-purpose subtitle editor with ASS/SSA support'
arch=(x86_64)
url=https://aegisub.org
license=(
GPL
BSD
)
depends=(
alsa-lib
boost-libs
fftw
fontconfig
hunspell
icu
libass.so
libffms2.so
libgl
libpulse
uchardet
wxwidgets-gtk3
zlib
)
makedepends=(
autoconf-archive
boost
git
intltool
lua
mesa
)
provides=(aegisub)
conflicts=(aegisub)
source=(
aegisub::git+https://github.com/Aegisub/Aegisub.git
git+https://github.com/Aegisub/assdraw.git
# https://github.com/Aegisub/Aegisub/commit/6bd3f4c26b8fc1f76a8b797fcee11e7611d59a39.patch
0001-Use-target-name-without-directory-in-_OBJ-macro.patch
# https://github.com/Aegisub/Aegisub/commit/5f235ff459e6a7ec36639894d1f45a638a9d73f3.patch
0001-Restrict-the-usage-of-undocumented-wxBitmap-ctor-to-.patch
# https://gitlab.archlinux.org/archlinux/packaging/packages/aegisub/-/blob/12e1e5ee64afb7cfb5a43a998774642bc1eeede6/boost-1.81.0.patch
0001-Fix-for-boost-1.81.0.patch
Remove-second-argument-to-StartStyling.patch
)
sha256sums=('SKIP'
'SKIP'
'ce90cd9a9c56abcbafeb88d33280d53bee5af98cd9e15f50d6a9e49ae1edda30'
'c4039f693996dd20be4e8a460fffb984fd34fd810b16b9b1ca7fc4f35df2cc17'
'0ae8ffafa9819b4cb49ef5e399cab549129da637058a54368519ed0603c1b24f'
'42d2c03d19eb6d64b0eb26c6c591fc142f61fcc251b0efcb91377f40448d9778')
pkgver() {
cd aegisub
tag='v3.2.2'
echo "${tag#v}.r$(git rev-list --count ${tag}..HEAD).$(git rev-parse --short HEAD)"
}
prepare() {
cd aegisub
# boost 1.69
#sed 's|gil/gil_all.hpp|gil.hpp|g' -i src/*.cpp
#sed 's/$(LIBS_BOOST) $(LIBS_ICU)/$(LIBS_BOOST) $(LIBS_ICU) -pthread/' -i tools/Makefile
# https://github.com/Aegisub/Aegisub/issues/171
patch -p1 -i ../0001-Use-target-name-without-directory-in-_OBJ-macro.patch
# Fix build with wxWidgets 3.0
patch -p1 -i ../0001-Restrict-the-usage-of-undocumented-wxBitmap-ctor-to-.patch
# Fix build with boost 1.81.0
patch -p1 -i ../0001-Fix-for-boost-1.81.0.patch
# Fix runtime warning "The second argument passed to StartStyling should be 0"
patch -p1 -i ../Remove-second-argument-to-StartStyling.patch
cp -f /usr/share/aclocal/ax_boost_{chrono,filesystem,locale,regex,system,thread}.m4 m4macros/
./autogen.sh
}
build() {
cd aegisub
# http://site.icu-project.org/download/61#TOC-Migration-Issues
#CPPFLAGS+=' -DU_USING_ICU_NAMESPACE=1'
./configure \
--prefix=/usr \
--without-{portaudio,openal,oss} \
--disable-update-checker
make
}
package() {
cd aegisub
make DESTDIR="${pkgdir}" install
install -Dm 644 LICENCE -t "${pkgdir}"/usr/share/licenses/aegisub-git/
}
# vim: ts=2 sw=2 et:
|