summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a54cabda63a336c7b6d5562208bf66b3b369519c (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
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Maintainer: dryes <joswiseman@gmail>

pkgname=aften-git
pkgver=0.0.8.r886.89aee3d
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc='Audio encoder which generates compressed audio streams based on ATSC A/52 specification. (GIT Version)'
url='http://aften.sourceforge.net/'
license=('GPL')
depends=('glibc')
makedepends=('cmake' 'git')
provides=('aften')
conflicts=('aften')
source=('aften::git://git.code.sf.net/p/aften/code')
sha1sums=('SKIP')

pkgver() {
  cd aften
  _ver="$(cat CMakeLists.txt | grep -e SO_MAJOR_VERSION -e SO_MINOR_VERSION -e SO_BUILD_VERSION | cut -d '"' -f2 | head -n3)"
  echo "$(echo ${_ver} | tr ' ' .).r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../aften \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DSHARED=ON
  make
}

package() {
  make -C build DESTDIR="${pkgdir}" install
}