summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/codecs/PKGBUILD
blob: 8cf80bebee4309d97a78eb93d36e17860e9b69c3 (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
# $Id: PKGBUILD 27228 2009-02-17 05:58:02Z thayer $
# Contributor: Thomas Baechler <thomas@archlinux.org>
# Maintainer: Thayer Williams <thayer@archlinux.org>

pkgname=codecs
pkgver=20071007
pkgrel=3
pkgdesc="Non-linux native codec pack. (Win32, Real9, QuickTime)"
arch=('i686' 'x86_64')
license=('unknown')
# The codec packages are different
# only the 32 bit package needs legacy libstdc++
[ "$CARCH" = "i686" ] && depends=('libstdc++5')
[ "$CARCH" = "x86_64" ] && depends=('gcc-libs')
options=('!strip')
url="http://www.mplayerhq.hu/design7/dload.html"

md5sums=('4ea9c2dbd0945c83af1a8d0dd363993c')
_arch=""
if [ "${CARCH}" = "x86_64" ]; then
  _arch="-amd64"
  md5sums=('8e1ceeec51469f5baac65e56fac709e8')
fi
source=(http://www.mplayerhq.hu/MPlayer/releases/codecs/essential${_arch}-${pkgver}.tar.bz2)

build() {
  mkdir -p ${pkgdir}/usr/lib/codecs
  cd ${pkgdir}/usr/lib
  ln -s codecs win32
  install -m755 ${srcdir}/essential${_arch}-${pkgver}/* ${pkgdir}/usr/lib/codecs
  rm ${pkgdir}/usr/lib/codecs/README
}