python-PyAudio: better sed line
This commit is contained in:
parent
e22b8204bb
commit
eea5079923
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue