summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a3316c99b4033858200e0652bd6fcb0f92d5ce0 (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
# Maintainer: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com>
# Contributor: MArkus Kitsinger <root@swooshalicio.us>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: PelPix <kylebloss@pelpix.info>
# Contributor: DrZaius <lou[at]fakeoutdoorsman[dot]com>

pkgname=lib32-libfdk-aac
pkgver=2.0.2
pkgrel=1
pkgdesc='Fraunhofer FDK AAC codec library (32-bit)'
arch=(x86_64)
url=https://sourceforge.net/projects/opencore-amr/
license=(custom)
depends=(lib32-glibc libfdk-aac)
makedepends=(git)
source=(git+https://github.com/mstorsjo/fdk-aac.git#tag=8003a054c81c45c10fe70a832f02c6985383608f)
sha256sums=(SKIP)

pkgver() {
    cd fdk-aac

    git describe --tags | sed 's/^v//'
}

prepare() {
    cd fdk-aac

    ./autogen.sh
}

build() {
    cd fdk-aac

    export CC='gcc -m32'
    export CXX='g++ -m32'
    export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'

    ./configure --prefix=/usr \
        --build=i686-pc-linux-gnu \
        --libdir=/usr/lib32 \
        --disable-static

    make
}

package () {
    cd fdk-aac

    make DESTDIR="${pkgdir}" install
    install -Dm 644 NOTICE -t "${pkgdir}/usr/share/licenses/${pkgname}/"

    rm -rf "${pkgdir}/usr/include"
}