From 63fe1f7b6b6a571039ca4faa079875a9587ee0e2 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 5 Apr 2018 20:21:02 -0500 Subject: community/sox: modernise, no tests, use DISTRO_NAME --- community/sox/APKBUILD | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) (limited to 'community') diff --git a/community/sox/APKBUILD b/community/sox/APKBUILD index 28822dfcb5..6c09f33157 100644 --- a/community/sox/APKBUILD +++ b/community/sox/APKBUILD @@ -2,10 +2,11 @@ # Maintainer: Natanael Copa pkgname=sox pkgver=14.4.2 -pkgrel=0 +pkgrel=1 pkgdesc="The Swiss Army knife of sound processing tools" url="http://sox.sourceforge.net/" arch="all" +options="!check" # No test suite. license="GPL LGPL" makedepends="ffmpeg-dev libao-dev libvorbis-dev libogg-dev lame-dev libmad-dev bash alsa-lib-dev libsndfile-dev libsamplerate-dev @@ -20,41 +21,30 @@ source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.t " prepare() { - cd "$srcdir"/$pkgname-$pkgver - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + cd "$builddir" + default_prepare autoreconf -vif } build() { - cd "$srcdir"/$pkgname-$pkgver + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --with-dyn-default \ - --with-distro="Alpine Linux" \ - || return 1 - make || return 1 + --with-distro="${DISTRO_NAME:-Alpine Linux}" + make } 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/sox/*.a || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install + ln -sf play "$pkgdir"/usr/bin/rec + ln -sf ../man1/sox.1.gz "$pkgdir"/usr/share/man/man7/soxeffect.7 + rm "$pkgdir"/usr/lib/sox/*.a } -md5sums="d04fba2d9245e661f245de0577f48a33 sox-14.4.2.tar.gz -b734d72321470f9aaf44464878b1d12f sox-uclibc.patch -630cf245f283b4dd205bdafde421240c sox-dynamic.patch" -sha256sums="b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c sox-14.4.2.tar.gz -0d1447942cf64b0307baa7a16f0a91f553597be187d5c94eadc56d180615717d sox-uclibc.patch -49fd1d0fc08d4d6722d9dcf7bc44d95122627191c876a5d1748b991cddb604d1 sox-dynamic.patch" sha512sums="b5c6203f4f5577503a034fe5b3d6a033ee97fe4d171c533933e2b036118a43a14f97c9668433229708609ccf9ee16abdeca3fc7501aa0aafe06baacbba537eca sox-14.4.2.tar.gz 08c55a0de96733e10544d450f39c2205b4057b9fc024503ec97b1906a075752ee8a4b0a1b4c5bbad2eebec17bcf8d069b22d243a63d28b77c23d545efcca6aec sox-uclibc.patch 3950834db26faa0523006c6fd8e0769d080518f127d345c8ec9bf53e9db8a6bd67cd724f0f86492aaf9ce6ede2dfbde167049768f35c14ef3c2b96e7e00302b6 sox-dynamic.patch" -- cgit v1.2.3