summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f58cdd41290204ce5500988d04cbc7c620b77bf (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
# Maintainer: FichteFoll <fichtefoll2@googlemail.com>

pkgname=aegisub-ttools-meson-git
_srcname=aegisub-ttools
pkgver=3.2.2.r440.9ebfbf456
pkgrel=1
pkgdesc='A general-purpose subtitle editor with ASS/SSA support (TypesettingTools fork, meson branch)'
arch=('x86_64')
url='http://www.aegisub.org'
license=('GPL' 'BSD')
depends=('gcc-libs' 'glibc' 'boost-libs'
         'fontconfig' 'icu' 'libgl' 'wxgtk3' 'zlib' 'libass.so'
         # optional by the build system, but don't make much sense to exclude
         'alsa-lib' 'libffms2.so' 'fftw' 'hunspell' 'uchardet'
         # 'luajit' # Arch's luajit isn't compiled in 5.2 mode
         )  # I think it depends on something else here too, but not sure what
makedepends=('boost' 'git' 'intltool' 'lua' 'mesa' 'meson')
provides=('aegisub')
conflicts=('aegisub')
source=("$_srcname::git+https://github.com/TypesettingTools/Aegisub.git#branch=meson")
sha256sums=('SKIP')

pkgver() {
  cd "$_srcname"

  tag='v3.2.2'

  echo "${tag#v}.r$(git rev-list --count ${tag}..HEAD).$(git rev-parse --short HEAD)"
}

prepare() {

  cd "$_srcname"

  #patch -p1 < ../fix_version.patch

  arch-meson builddir -Dportaudio=disabled -Dopenal=disabled
}

build() {
  cd "$_srcname"

  ninja -C builddir
}

package() {
  cd "$_srcname"

  DESTDIR="${pkgdir}" ninja -C builddir install
  install -Dm 644 LICENCE -t "${pkgdir}/usr/share/licenses/$pkgname/"
}

# vim: ts=2 sw=2 et: