summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 36cec01279d9e2302e5fa12d631fa7c457cb28a5 (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
# $Id$
# Maintainer: Eric Bailey <nerflad@gmail.com>
# Prior Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>

# Note: This package is proprietary and distribution is limited. However, we
# have written permission to by the FMOD CEO to distribute this in binary form.
pkgname=fmodex
pkgver=4.44.64
pkgrel=1
pkgdesc="An advanced audio engine"
arch=('i686' 'x86_64')
url="http://www.fmod.org/"
license=('custom')
source=("fmodapi44464linux.tar.gz::https://zdoom.org/files/fmod/fmodapi44464linux.tar.gz")
sha256sums=('21a24f1394ae6981a47be0281f69ce41201801e59fb88084c49c5fd5459af010')

package() {
  cd fmodapi${pkgver//./}linux

  mkdir -p ${pkgdir}/usr/lib
  mkdir -p ${pkgdir}/usr/include/fmodex

  cp -d api/lib/* ${pkgdir}/usr/lib/
  [[ $CARCH == "i686" ]] && rm ${pkgdir}/usr/lib/*64*

  if [[ $CARCH == "x86_64" ]]; then
    cd ${pkgdir}/usr/lib
    ln -sf libfmodex64-${pkgver}.so libfmodex-${pkgver}.so
    ln -sf libfmodexL64-${pkgver}.so libfmodexL-${pkgver}.so
    cd ${srcdir}/fmodapi${pkgver//./}linux
  fi

  cp api/inc/* ${pkgdir}/usr/include/fmodex/

  install -Dm644 documentation/LICENSE.TXT ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE

  mkdir -p ${pkgdir}/usr/share/doc/fmodex
  cp -r documentation examples ${pkgdir}/usr/share/doc/fmodex
}

# vim:set ts=2 sw=2 et: