PKGBUILDs/extra/xvidcore/PKGBUILD
2009-10-09 21:23:22 -05:00

28 lines
754 B
Bash

# $Id: PKGBUILD 20949 2008-12-08 02:54:17Z tobias $
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Sarah Hay <sarah@archlinux.org>
pkgname=xvidcore
pkgver=1.2.1
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=('8c4470ae8e5a104abedb39f6c70e2a40')
build() {
cd ${srcdir}/${pkgname}/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
}