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

pkgname=faad2-git
pkgver=2.8.8.r16.gdcb6ce4
pkgrel=1
pkgdesc="Freeware Advanced Audio (AAC) Decoder"
arch=('i686' 'x86_64')
url="https://faac.sourceforge.net/"
license=('GPL')
depends=('glibc')
makedepends=('git')
provides=("faad2=$pkgver")
conflicts=('faad2')
source=("git+https://git.code.sf.net/p/faac/faad2")
sha256sums=('SKIP')


pkgver() {
  cd "faad2"

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

build() {
  cd "faad2"

  ./bootstrap
  ./configure \
    --prefix="/usr"
  make
}

package() {
  cd "faad2"

  make DESTDIR="$pkgdir" install
}