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

pkgname=fdkaac-git
pkgver=1.0.1.r0.gfdf5c2f
pkgrel=1
pkgdesc="Command line encoder frontend for libfdk-aac"
arch=('i686' 'x86_64')
url="https://github.com/nu774/fdkaac"
license=('custom')
depends=('glibc' 'libfdk-aac')
makedepends=('git')
provides=('fdkaac')
conflicts=('fdkaac')
source=("git+https://github.com/nu774/fdkaac.git")
sha256sums=('SKIP')


pkgver() {
  cd "fdkaac"

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

build() {
  cd "fdkaac"

  autoreconf -fi
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "fdkaac"

  make check
}

package() {
  cd "fdkaac"

  make DESTDIR="$pkgdir" install
  install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/fdkaac"
}