summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 376c3e5b729d7636771456184b3867f206c1d1e2 (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
# Maintainer: Daniel Bermond <dbermond@archlinux.org>

pkgname=libaribcaption-git
pkgver=1.1.1.r2.g41a014d
pkgrel=1
pkgdesc='Caption decoder/renderer library for handling ARIB STD-B24 based TV broadcast captions (git version)'
arch=('x86_64')
url='https://github.com/xqq/libaribcaption/'
license=('MIT')
depends=('fontconfig' 'freetype2')
makedepends=('git' 'cmake')
provides=('libaribcaption')
conflicts=('libaribcaption')
source=('git+https://github.com/xqq/libaribcaption.git')
sha256sums=('SKIP')

pkgver() {
    git -C libaribcaption describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
    cmake -B build -S libaribcaption \
        -G 'Unix Makefiles' \
        -DCMAKE_BUILD_TYPE:STRING='None' \
        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
        -DARIBCC_SHARED_LIBRARY:BOOL='ON' \
        -Wno-dev
    cmake --build build
}

package() {
    DESTDIR="$pkgdir" cmake --install build
    install -D -m644 libaribcaption/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}