summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4288b6114876ec9a807560451ec0b46051c74c9 (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
# Maintainer : Daniel Bermond < gmail-com: danielbermond >
# Contributor: Daniel Nagy <danielnagy at gmx de>

pkgname=libde265-git
_srcname=libde265
pkgver=1.0.3.r31.g4488ae0c
pkgrel=1
pkgdesc='Open H.265 video codec implementation (git version)'
arch=('i686' 'x86_64')
url='https://github.com/strukturag/libde265/'
license=('LGPL3')
depends=('gcc-libs')
makedepends=('git' 'ffmpeg' 'sdl' 'qt5-base')
optdepends=('ffmpeg: for sherlock265'
            'qt5-base: for sherlock265'
            'sdl: for dec265 YUV overlay output')
provides=('libde265')
conflicts=('libde265')
source=('git+https://github.com/strukturag/libde265.git')
sha256sums=('SKIP')

prepare() {
    cd "$_srcname"
    
    ./autogen.sh
}

pkgver() {
    cd "$_srcname"
    
    # git, tags available
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
    cd "$_srcname"
    
    ./configure \
        --prefix='/usr' \
        --enable-static=no \
        --enable-sse
        
    make
}

package() {
    cd "$_srcname"
    
    make DESTDIR="$pkgdir" install
}