python-PyAudio: better sed line

This commit is contained in:
Alessio Sergi 2018-09-15 01:51:47 +02:00
parent e22b8204bb
commit eea5079923

View file

@ -15,9 +15,7 @@ distfiles="${PYPI_SITE}/P/PyAudio/PyAudio-${version}.tar.gz"
checksum=93bfde30e0b64e63a46f2fd77e85c41fd51182a4a3413d9edfaf9ffaa26efb74
post_install() {
linestart=$(grep -n "Copyright (c) 2006 Hubert Pham" README | cut -d: -f1)
lineend=$(grep -n "WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." README | cut -d: -f1)
sed -n "${linestart},${lineend}p" < README > LICENSE
sed -n '/Copyright/,/SOFTWARE\./p'< README > LICENSE
vlicense LICENSE
}