summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18997d9eba707673bbaaa32788305a3037fd318b (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
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Jesse Jaara <gmail.com: jesse.jaara>

pkgname=libass-git
pkgver=0.17.0.75.g649a7c2
pkgrel=1
pkgdesc="A portable library for SSA/ASS subtitles rendering. (GIT version)"
arch=('x86_64')
url='https://github.com/libass/libass'
license=('custom::ISC')
depends=(
  'glibc' # libc.so libm.so
  'fontconfig' 'libfontconfig.so'
  'freetype2' 'libfreetype.so'
  'fribidi' 'libfribidi.so'
  'harfbuzz' 'libharfbuzz.so'
  'libunibreak' # libunibreak.so
)
makedepends=(
  'git'
  'nasm'
)
provides=(
  'libass'
  'libass.so'
)
conflicts=('libass')
source=('git+https://github.com/libass/libass.git')
sha256sums=('SKIP')

pkgver() {
  cd libass
  echo "$(git describe --long --tags | tr - .)"
}

prepare() {
  mkdir -p build
}

build() {
  cd libass
  autoreconf -vfi

  cd "${srcdir}/build"
  ../libass/configure \
    --prefix=/usr

  make
}

package() {
  make -C build DESTDIR="${pkgdir}" install
  install -Dm644 libass/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}