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

pkgname=aften-git
pkgver=0.0.8.r886.89aee3d
pkgrel=1
arch=('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+https://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=None \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DSHARED=ON

  make
}

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