summaryrefslogtreecommitdiffstats
path: root/opencore-amr/PKGBUILD
blob: da36ced8680e30b660de76e7416812a3e378ba27 (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
# Contributor: WAntilles <wantilles@adslgr.com>
# Many thanks to the Gentoo guys.

pkgname=opencore-amr
pkgver=0.1.1
pkgrel=2
pkgdesc="Open source implementation of the Adaptive Multi Rate (AMR) speech codec"
arch=('i686' 'x86_64')
license=('GPL')
url="http://opencore-amr.sourceforge.net/"
depends=('glibc')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
	opencore-amr-0.1.1-gentoo-pic.patch
	opencore-amr-0.1.1-arch-paths.patch)
md5sums=('d2e18436202fc14e03e5a254f8eb1df4'
	 '8bf96678aaec5a6173185dd9608799d1'
	 'd253da6c39b3c7455ed01afa1e1d300a')

build() {
  cd ${srcdir}/${pkgname}

  #Patch for -fPIC problem (graciously taken from Gentoo's e-build)
  patch -Np2 -i "${srcdir}/opencore-amr-0.1.1-gentoo-pic.patch" || return 1

  #Patch for correct Arch paths
  patch -Np1 -i "${srcdir}/opencore-amr-0.1.1-arch-paths.patch" || return 1

  make || return 1
  make DESTDIR=${pkgdir}/ install || return 1
}

md5sums=('dcdc1b3a7f32668b196e861b0fa0e602'
         '8bf96678aaec5a6173185dd9608799d1'
         'd253da6c39b3c7455ed01afa1e1d300a')
sha256sums=('eb17e4b99a37b66b85798551fb2036664e34f61fa06b2a9b5516d6216f5f007d'
            '83cce71c7bac50781cca800fbd0a81f7fd1f52714b9bd7cad46b242cc79000fa'
            '25f30aa53d3cc6a4fef2b3695c89cd399586eb5c741174bb371cb2084bfe55b5')