summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff76bbd638ceb34a76c68b4aac3a80fdf9b0d369 (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
# Maintainer: Yevhenii Kolesnikov <sigexp.acc@gmail.com>
# Contributor: willemw <willemw12@gmail.com>
# Contributor: josephgbr <rafael.f.f1@gmail.com>
# Contributor: rabyte <rabyteNOSPAM_at_moonblade.dot.org>

_pkgname=libtremor
pkgname=$_pkgname-git
pkgver=r127.7c30a66
pkgrel=1
epoch=2
pkgdesc="Integer-only, fully Ogg Vorbis compliant software decoder library"
arch=('x86_64')
url="https://www.xiph.org/vorbis/"
license=('BSD')
depends=('libogg')
makedepends=('git')
provides=($_pkgname)
conflicts=("${_pkgname}" "${_pkgname-svn}-svn")
options=('!libtool')
source=($pkgname::git+https://gitlab.xiph.org/xiph/tremor.git)
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd $pkgname

  # Fix for automake 1.13
  #sed -i "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" configure.in

  # Patch for error:
  #     ./configure: line 9215: syntax error near unexpected token `,'
  #     ./configure: line 9215: `    XIPH_PATH_OGG(, as_fn_error $? "must have Ogg installed!" "$LINENO" 5)'
  sed -i "s/\(XIPH_PATH_OGG(, AC_MSG_ERROR(must have Ogg installed!))\)/#\1/" configure.in
}

build() {
  cd $pkgname
  ./autogen.sh --prefix=/usr
  make
}

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