community/toolame to 02l-11

This commit is contained in:
Kevin Mihelich 2018-06-09 12:15:21 +00:00
parent a9705b7c34
commit 68d2443934

View file

@ -8,29 +8,34 @@
pkgname=toolame pkgname=toolame
pkgver=02l pkgver=02l
pkgrel=10 pkgrel=11
pkgdesc="An optimized mpeg 1/2 layer 2 audio encoder" pkgdesc="An optimized mpeg 1/2 layer 2 audio encoder"
arch=('i686' 'x86_64') arch=('x86_64')
url="http://sourceforge.net/projects/toolame" url="http://sourceforge.net/projects/toolame"
license=('LGPL') license=('LGPL')
depends=('glibc') depends=('glibc')
source=(http://downloads.sourceforge.net/sourceforge/toolame/toolame-02l.tgz source=(https://downloads.sourceforge.net/sourceforge/toolame/toolame-02l.tgz
toolame-02l.patch) toolame-02l.patch)
md5sums=('5946e2dd78fbb57e54386b3b5d873fee' sha256sums=('3b95cd2504bceac4aab2fca03bb3b5974d1d44b5afdd8eb4cc0f0899521bffc4'
'7fe02630ce8f08bd279a4bce93e64128') 'ec5932294146af74e8861537f42621a5df6e78d46ff45e41f1b4e214401f3bde')
build() { prepare() {
cd $srcdir/$pkgname-$pkgver cd $pkgname-$pkgver
patch -p0 < ../toolame-02l.patch patch -p0 < ../toolame-02l.patch
[ "$CARCH" = "x86_64" ] && sed -i "s|-march=i686|-march=x86-64|g" Makefile [ "$CARCH" = "x86_64" ] && sed -i "s|-march=i686|-march=x86-64|g" Makefile
[ "$CARCH" = "arm" ] && sed -i "s|-march=i686|-march=armv5te|g" Makefile [ "$CARCH" = "arm" ] && sed -i "s|-march=i686|-march=armv5te|g" Makefile
[ "$CARCH" = "armv6h" ] && sed -i "s|-march=i686|-march=armv6 -mfloat-abi=hard -mfpu=vfp|g" Makefile [ "$CARCH" = "armv6h" ] && sed -i "s|-march=i686|-march=armv6 -mfloat-abi=hard -mfpu=vfp|g" Makefile
[ "$CARCH" = "armv7h" ] && sed -i "s|-march=i686|-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16|g" Makefile [ "$CARCH" = "armv7h" ] && sed -i "s|-march=i686|-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16|g" Makefile
[ "$CARCH" = "aarch64" ] && sed -i "s|-march=i686|-march=armv8-a -std=gnu89|g" Makefile [ "$CARCH" = "aarch64" ] && sed -i "s|-march=i686|-march=armv8-a|g" Makefile
sed -e 's|INLINE void putbits|void putbits|' -i bitstream.h # Fix build
}
build() {
cd "$srcdir"/$pkgname-$pkgver
make make
} }
package() { package() {
cd $srcdir/$pkgname-$pkgver cd "$srcdir"/$pkgname-$pkgver
install -D -m755 toolame $pkgdir/usr/bin/toolame install -D -m755 toolame "$pkgdir"/usr/bin/toolame
} }