summaryrefslogtreecommitdiffstats
path: root/abs/core/xvidcore/PKGBUILD
blob: 82e87b55ff1ed71b2e7491b2995596abea5569ab (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
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Sarah Hay <sarah@archlinux.org>

pkgname=xvidcore
pkgver=1.1.3
pkgrel=1
pkgdesc="XviD is an open source MPEG-4 video codec"
arch=(i686 x86_64)
license=('GPL')
url="http://www.xvid.org/"
depends=('glibc')
makedepends=('nasm')
source=(http://downloads.xvid.org/downloads/${pkgname}-${pkgver}.tar.bz2)
md5sums=('29c60d4d991ac18f687a8fd13cfe64b7')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}/build/generic
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=${startdir}/pkg install

  #Fix dynamic libraries
  cd ${startdir}/pkg/usr/lib
  mylib=$(basename libxvidcore.so.*)
  ln -sf ${mylib} libxvidcore.so.4
  ln -sf ${mylib} libxvidcore.so
}