summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4947a4e02973e8531db81b13bb9d2fb13620618c (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libtheora-git
pkgver=1.2.0alpha1.r148.g7180717
pkgrel=1
pkgdesc="An open video codec developed by the Xiph.org"
arch=('i686' 'x86_64')
url="https://www.theora.org/"
license=('BSD')
depends=('glibc' 'libogg')
makedepends=('git' 'libvorbis')
provides=("libtheora=$pkgver")
conflicts=('libtheora')
options=('staticlibs')
source=("git+https://gitlab.xiph.org/xiph/theora.git")
sha256sums=('SKIP')


pkgver() {
  cd "theora"

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

build() {
  cd "theora"

  ./autogen.sh
  ./configure \
    --prefix="/usr" \
    --disable-examples
  make
}

check() {
  cd "theora"

  make check
}

package() {
  cd "theora"

  make DESTDIR="$pkgdir" install
  install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/libtheora"
}