summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca7a4db7de6d44f38a502372a17ee79d634987ca (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
# Maintainer: Justin Dray <justin@dray.be>
# Contributor: Taylor Lookabaugh <jesus.christ.i.love@gmail.com>

pkgname=libaacplus
pkgver=2.0.2
pkgrel=12
pkgdesc="3GPP AAC+ High Efficiency Advanced Audio Codec v2 (HE-AAC+) Encoder Shared Library"
arch=('i686' 'x86_64')
url="http://tipok.org.ua/node/17"
license=('LGPL' '3GPP')
options=(!makeflags !libtool)
conflicts=('aacplusenc')
provides=('aacplusenc')
optdepends=('fftw')
depends=('glibc')
makedepends=('unzip')
source=(http://tipok.org.ua/downloads/media/aac+/libaacplus/$pkgname-$pkgver.tar.gz
        'au.patch')
md5sums=('3fc15d5aa91d0e8b8f94acb6555103da'
         '4a2845777a6e5b1154694f923f9c51a5')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -p1 -i ${srcdir}/au.patch
  autoupdate
  for i in $(find . -name 'Makefile.am');do sed 's|INCLUDES|AM_CPPFLAGS|g' -i $i; done
  sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
  ./autogen.sh
  ./configure --prefix=/usr --enable-static=off
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
}


        


# vim:set ts=2 sw=2 et: