PKGBUILDs/extra/speex/PKGBUILD

39 lines
1 KiB
Bash
Raw Normal View History

2012-03-06 01:10:56 +00:00
# $Id: PKGBUILD 137583 2011-09-09 22:58:20Z allan $
2013-02-02 17:22:15 +00:00
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
2015-02-13 01:49:10 +00:00
# Contributor: Jason Chu <jason@archlinux.org>
2012-03-06 01:10:56 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - enhancements for armv5
pkgname=speex
2015-02-13 01:49:10 +00:00
pkgver=1.2rc2
pkgrel=1
2012-03-06 01:10:56 +00:00
pkgdesc="A free codec for free speech"
arch=('i686' 'x86_64')
url="http://www.speex.org/"
license=('BSD')
2015-02-13 01:49:10 +00:00
depends=(libogg speexdsp)
2012-03-06 01:10:56 +00:00
options=('!libtool')
source=(http://downloads.us.xiph.org/releases/$pkgname/$pkgname-$pkgver.tar.gz)
2015-02-13 01:49:10 +00:00
md5sums=('6ae7db3bab01e1d4b86bacfa8ca33e81')
2012-03-06 01:10:56 +00:00
build() {
cd $srcdir/speex-$pkgver
[[ "$CARCH" == "arm" ]] && CONFIG="--enable-arm5e-asm --enable-fixed-point"
2015-02-13 01:49:10 +00:00
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static $CONFIG \
--enable-binaries # Must be given or configure won't use pkg-config correctly
2012-03-06 01:10:56 +00:00
make
}
2015-02-13 01:49:10 +00:00
check() {
cd $pkgname-$pkgver
make -k check
}
2012-03-06 01:10:56 +00:00
package() {
2013-02-02 17:22:15 +00:00
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
2012-03-06 01:10:56 +00:00
}