mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 20:07:14 +08:00
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
|
pkgname=sox
|
|
pkgver=14.3.1
|
|
pkgrel=1
|
|
pkgdesc="The Swiss Army knife of sound processing tools"
|
|
arch=('i686' 'x86_64')
|
|
url="http://sox.sourceforge.net/"
|
|
license=('GPL' 'LGPL')
|
|
depends=('ffmpeg' 'libao' 'libvorbis' 'lame' 'libmad' 'alsa-lib' 'libsndfile' 'libtool' 'file')
|
|
options=('!libtool')
|
|
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
|
|
md5sums=('b99871c7bbae84feac9d0d1f010331ba')
|
|
sha1sums=('ef1773e08322ad9d9deb0a9f8e37a7ba4b9ca384')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--with-dyn-default \
|
|
--with-distro="Arch Linux" || return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
ln -sf play "${pkgdir}/usr/bin/rec" || return 1
|
|
ln -sf ../man1/sox.1.gz "${pkgdir}/usr/share/man/man7/soxeffect.7"
|
|
}
|