aboutsummaryrefslogtreecommitdiffstats
path: root/main/sox/APKBUILD
blob: a50bfc64c345c374d1b7a5d34bb3e4c717985fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sox
pkgver=14.4.1
pkgrel=2
pkgdesc="The Swiss Army knife of sound processing tools"
url="http://sox.sourceforge.net/"
arch="all"
license="GPL LGPL"
makedepends="ffmpeg-dev libao-dev libvorbis-dev libogg-dev lame-dev 
	libmad-dev bash alsa-lib-dev libsndfile-dev libsamplerate-dev
	libtool file-dev libid3tag-dev flac-dev"
depends=
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
	0001-Check-for-minimum-size-sphere-headers.patch
	0002-More-checks-for-invalid-MS-ADPCM-blocks.patch
	sox-uclibc.patch
	"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-dyn-default \
		--with-distro="Alpine 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 || return 1
	rm "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/sox/*.a \
		"$pkgdir"/usr/lib/sox/*.la \
		|| return 1
}
md5sums="670307f40763490a2bc0d1f322071e7a  sox-14.4.1.tar.gz
fd71128112abc7b79d1f7f87d33b2a28  0001-Check-for-minimum-size-sphere-headers.patch
f909976e1ac57a2cf10aaecf29d7abbf  0002-More-checks-for-invalid-MS-ADPCM-blocks.patch
b734d72321470f9aaf44464878b1d12f  sox-uclibc.patch"
sha256sums="9a8c2c6fe51e608da346a157e111508a957af9e3ecf3de26781d36e9a67fa89b  sox-14.4.1.tar.gz
0c30b66aca138f90b88332fdd8e7b2235eb85803cf96b4e79f27fbc8d84bc07b  0001-Check-for-minimum-size-sphere-headers.patch
d1de894281ed906214c1606de386ec708efac1bca49a9e8cb8397d3ec6894cc0  0002-More-checks-for-invalid-MS-ADPCM-blocks.patch
0d1447942cf64b0307baa7a16f0a91f553597be187d5c94eadc56d180615717d  sox-uclibc.patch"
sha512sums="a35c0f424ffaa51d06291e69b28ae7f2248a750fa8aded911dcd7e123877ecb5142c292f943eb723142c50dbd890b58163c6ef24c9c0573377855fad1b36fb25  sox-14.4.1.tar.gz
e0231026de666146ca09598d6113645b52c9f4ced3eaf4e437bff0c1507699463e2f4962d1fd55f97cce5077ed01f2f3abda64cf4d027ce78befa2e818378dfa  0001-Check-for-minimum-size-sphere-headers.patch
2603c995558ff25b67321845b80de3d1f326d374fce0b297ade4a956d5286c49b690b0c30bd2afc19ac5951ff8c203c5b45db9aff59da7cba0252feefb739c12  0002-More-checks-for-invalid-MS-ADPCM-blocks.patch
08c55a0de96733e10544d450f39c2205b4057b9fc024503ec97b1906a075752ee8a4b0a1b4c5bbad2eebec17bcf8d069b22d243a63d28b77c23d545efcca6aec  sox-uclibc.patch"