summaryrefslogtreecommitdiffstats
path: root/codecs/PKGBUILD
blob: ee6114d62c517f8ba65c944a9204811db3ec6f1e (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
#Maintainer: Babets

pkgname=codecs
pkgver=20071007
pkgrel=6
pkgdesc="Non-linux native codec pack."
arch=('i686' 'x86_64')
url="http://www.mplayerhq.hu/design7/dload.html"
license=('unknown')
conflicts=('codecs-extra')
replaces=('codecs-extra')
# 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')

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


build() {
  install -d ${pkgdir}/usr/lib/codecs
  cd ${pkgdir}/usr/lib
  if [ "${CARCH}" = "x86_64" ]; then
    install -m644 ${srcdir}/essential-amd64-${pkgver}/* ${pkgdir}/usr/lib/codecs
  else
    ln -s codecs win32
    install -m644 ${srcdir}/all-${pkgver}/* ${pkgdir}/usr/lib/codecs
  fi
  rm ${pkgdir}/usr/lib/codecs/README
}