summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 959c980ad10763a9f6add4982be45688e07df471 (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
# Maintainer: arch1t3cht <arch1t3cht@gmail.com>
# Maintainer: Qirui Wang <wqr.prg@gmail.com>
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>

pkgname=aegisub-git
pkgver=3.4.2.r61.08c084e16
pkgrel=1
pkgdesc='A general-purpose subtitle editor with ASS/SSA support'
arch=(x86_64)
url=http://www.aegisub.org
license=(BSD-3-Clause)
depends=(
  alsa-lib
  boost-libs
  curl
  fftw
  fontconfig
  gcc-libs
  glibc
  hicolor-icon-theme
  hunspell
  icu
  libass.so
  libffms2.so
  libgl
  libpulse
  uchardet
  wxwidgets-common
  wxwidgets-gtk3
  zlib
)
makedepends=(
  boost
  cmake
  git
  mesa
  meson
)
source=(git+https://github.com/TypesettingTools/Aegisub.git)
b2sums=('SKIP')

prepare() {
  cd Aegisub
  meson subprojects download luajit
  meson subprojects packagefiles --apply luajit
  sed "/subdir('tests')/d" -i meson.build
}

pkgver() {
  cd Aegisub
  tag='v3.4.2'
  echo "${tag#v}.r$(git rev-list --count ${tag}..HEAD).$(git rev-parse --short HEAD)"
}

build() {
  export CXXFLAGS+=" -fpermissive"
  arch-meson Aegisub build \
    -Db_lto=false \
    -Dopenal=disabled \
    -Dportaudio=disabled
  meson compile -C build
}

package() {
  meson install -C build --destdir "${pkgdir}" --skip-subprojects luajit
  install -dm 755 "${pkgdir}"/usr/share/aegisub/automation/include
  cp -dr --no-preserve=ownership Aegisub/automation/{autoload,demos} "${pkgdir}"/usr/share/aegisub/automation/
  cp -dr --no-preserve=ownership Aegisub/automation/include/{aegisub,*.lua} "${pkgdir}"/usr/share/aegisub/automation/include/
  install -Dm 644 Aegisub/LICENCE -t "${pkgdir}"/usr/share/licenses/aegisub/
}

# vim: ts=2 sw=2 et: