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

30 lines
973 B
Bash

# $Id: PKGBUILD 53219 2009-09-27 05:13:52Z james $
# Maintainer: Varun Acharya <varun@archlinux.org>
# Contributor: Sebastien Piccand <sebcactus gmail com>
pkgname=handbrake
pkgver=0.9.3
pkgrel=2
pkgdesc="HandBrake is a multiplatform, multithreaded DVD to MPEG-4 ripper/converter"
arch=('i686' 'x86_64')
url="http://handbrake.m0k.org/"
license=('GPL')
depends=()
makedepends=('ftjam' 'wget' 'patch' 'yasm')
conflicts=('handbrake-bin')
source=("http://handbrake.fr/rotation.php?file=HandBrake-${pkgver}.tar.gz")
md5sums=('ee79c94b5acd68f28351ba2704b4d55d')
build() {
cd $startdir/src/HandBrake-${pkgver}
#Build with optimizations:
if [ "$CARCH" = "x86_64" ]; then
OPTIM="-march=x86-64" ./configure
else OPTIM="-march=i686" ./configure
fi
jam || return 1
mkdir -p ${startdir}/pkg/usr/bin || return 1
install -m755 HandBrakeCLI $startdir/pkg/usr/bin/HandBrakeCLI || return 1
ln -s /usr/bin/HandBrakeCLI ${startdir}/pkg/usr/bin/handbrake || return 1
}