mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
30 lines
973 B
Bash
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
|
|
}
|