summaryrefslogtreecommitdiff
path: root/community/toolame/PKGBUILD
blob: 0f9fd76e38ed524ecd83ec2ea1207b33b4e79a13 (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
# $Id: PKGBUILD 21306 2010-07-15 21:41:30Z tdziedzic $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Victor Martinez Romanos <vmromanos@gmail.com>

pkgname=toolame
pkgver=02l
pkgrel=8
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
}