PKGBUILDs/community/toolame/PKGBUILD
2009-10-09 21:15:33 -05:00

23 lines
762 B
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Victor Martinez Romanos <vmromanos@gmail.com>
pkgname=toolame
pkgver=02l
pkgrel=7
pkgdesc="An optimized mpeg 1/2 layer 2 audio encoder"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/toolame"
license=('LGPL')
depends=('glibc')
source=(http://downloads.sourceforge.net/sourceforge/toolame/toolame-02l.tgz toolame-02l.patch)
md5sums=('5946e2dd78fbb57e54386b3b5d873fee' '7fe02630ce8f08bd279a4bce93e64128')
build() {
cd $srcdir/$pkgname-$pkgver
patch -p0 < ../toolame-02l.patch
[ "$CARCH" = "x86_64" ] && sed -i "s|-march=i686|-march=x86-64|g" Makefile
make || return 1
install -D -m755 toolame $pkgdir/usr/bin/toolame
}