mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
39 lines
1018 B
Bash
39 lines
1018 B
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
# Contributor: 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')
|
|
categories=('multimedia')
|
|
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tgz
|
|
$pkgname-$pkgver.patch)
|
|
md5sums=('5946e2dd78fbb57e54386b3b5d873fee'
|
|
'7fe02630ce8f08bd279a4bce93e64128')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
# Patch.
|
|
patch -p0 < ../toolame-02l.patch
|
|
|
|
# Fix arch.
|
|
[ "$CARCH" = "x86_64" ] && sed -i "s|-march=i686|-march=x86-64|g" Makefile
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
install -D -m755 toolame $pkgdir/usr/bin/$pkgname
|
|
}
|