summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c34eba3ac03f10d8ca0625741e77c148a37097a (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
# Maintainer: Lex Black <autumn-wind at web dot de>
# Contributor: Who uploaded it to AUR3

_gitname=daala
pkgname=${_gitname}-git
pkgver=0.0.r1696.g7278368
pkgrel=2
pkgdesc="next-next-gen video compression technology from Xiph.org, Mozilla and others"
arch=('i686' 'x86_64')
url="https://www.xiph.org/daala/"
license=('BSD')
makedepends=('git' 'sdl2' 'wxgtk2' 'libjpeg-turbo' 'libogg' 'libpng')
checkdepends=('check')
optdepends=("libogg: OGG support"
            "libpng: PNG support"
            "libjpeg-turbo: JPG support"
            "sdl2: For daala example player"
            "wxgtk2: For daala example analyzer")
provides=('libdaala' $_gitname)
conflicts=('libdaala' $_gitname)
options=('!libtool')
source=(git+https://git.xiph.org/daala.git)
md5sums=('SKIP')


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

build() {
  cd $_gitname
  ./autogen.sh
  ./configure --prefix=/usr --libdir=/usr/lib --enable-analyzer
  make
  #make tools
}

check() {
  cd $_gitname
  make check
}

package() {
  cd $_gitname
  make DESTDIR="$pkgdir/" install
  #make DESTDIR="$pkgdir/" install-docs
  #make DESTDIR="$pkgdir/" install-exec
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"

  # Install the example programs (if someone want to, some do work, outside of build directory)
  #install -Dm644 $pkgdir/usr/bin
  #install -m755 examples/analyzer ${pkgdir}/usr/bin/daala-analyzer
  #install -m755 examples/encoder_example ${pkgdir}/usr/bin/daala-encoder-ex
  #install -m755 examples/dump_video ${pkgdir}/usr/bin/daala-dump-video
  #install -m755 examples/player_example ${pkgdir}/usr/bin/daala-player-ex
}