mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 01:47:15 +08:00
43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
|
|
pkgname=sox
|
|
pkgver=14.4.0
|
|
pkgrel=5
|
|
pkgdesc="The Swiss Army knife of sound processing tools"
|
|
arch=('x86_64')
|
|
url="http://sox.sourceforge.net/"
|
|
license=('GPL' 'LGPL')
|
|
depends=('libltdl' 'file' 'libsndfile' 'libpng' 'lame' 'opencore-amr' 'gsm')
|
|
makedepends=('ffmpeg' 'libao' 'libmad' 'libid3tag' 'wavpack' 'pulseaudio')
|
|
optdepends=('libao: for ao plugin'
|
|
'ffmpeg: for ffmpeg plugin'
|
|
'libmad: for mp3 plugin'
|
|
'libid3tag: for mp3 plugin'
|
|
'wavpack: for wavpack plugin'
|
|
'libpulse: for pulse plugin')
|
|
options=('!libtool')
|
|
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
|
|
'sox.diff')
|
|
md5sums=('813807c6d6fcd4b0af5c995e61f46687'
|
|
'd91175d132c02364994905808acf04e0')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
patch -p1 -i "${srcdir}/sox.diff"
|
|
sed -i 's|man1/sox.1 soxeffect.7|man1/sox.1.gz soxeffect.7.gz|' Makefile.am
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--with-dyn-default \
|
|
--with-distro="Chakra-Linux"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|