PKGBUILDs/community/toolame/PKGBUILD

37 lines
1.3 KiB
Bash
Raw Normal View History

2012-02-22 04:44:06 +00:00
# $Id: PKGBUILD 65411 2012-02-21 03:29:11Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Victor Martinez Romanos <vmromanos@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - Makefile replacements for ARM
pkgname=toolame
pkgver=02l
2014-07-02 02:49:33 +00:00
pkgrel=10
2012-02-22 04:44:06 +00:00
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
[ "$CARCH" = "arm" ] && sed -i "s|-march=i686|-march=armv5te|g" Makefile
2012-07-29 19:12:06 +00:00
[ "$CARCH" = "armv6h" ] && sed -i "s|-march=i686|-march=armv6 -mfloat-abi=hard -mfpu=vfp|g" Makefile
2012-02-22 04:44:06 +00:00
[ "$CARCH" = "armv7h" ] && sed -i "s|-march=i686|-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16|g" Makefile
2016-01-09 00:45:15 +00:00
[ "$CARCH" = "aarch64" ] && sed -i "s|-march=i686|-march=armv8-a -std=gnu89|g" Makefile
2012-02-22 04:44:06 +00:00
make
2016-01-09 00:45:15 +00:00
}
package() {
cd $srcdir/$pkgname-$pkgver
2012-02-22 04:44:06 +00:00
install -D -m755 toolame $pkgdir/usr/bin/toolame
}