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
|
2016-12-22 00:56:16 +00:00
|
|
|
pkgver=1.2.0
|
2018-11-13 19:37:34 +00:00
|
|
|
pkgrel=2
|
2012-03-06 01:10:56 +00:00
|
|
|
pkgdesc="A free codec for free speech"
|
2018-11-13 19:37:34 +00:00
|
|
|
arch=(x86_64)
|
2016-12-22 00:56:16 +00:00
|
|
|
url="https://speex.org/"
|
|
|
|
license=(BSD)
|
2015-02-13 01:49:10 +00:00
|
|
|
depends=(libogg speexdsp)
|
2018-11-13 19:37:34 +00:00
|
|
|
source=(https://downloads.us.xiph.org/releases/$pkgname/$pkgname-$pkgver.tar.gz)
|
2016-12-22 00:56:16 +00:00
|
|
|
sha256sums=('eaae8af0ac742dc7d542c9439ac72f1f385ce838392dc849cae4536af9210094')
|
2012-03-06 01:10:56 +00:00
|
|
|
|
|
|
|
build() {
|
2016-12-22 00:56:16 +00:00
|
|
|
cd $pkgname-$pkgver
|
2012-03-06 01:10:56 +00:00
|
|
|
|
|
|
|
[[ "$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
|
|
|
}
|