diff options
author | JP-Ellis | 2021-01-13 08:29:39 +1100 |
---|---|---|
committer | GitHub | 2021-01-12 16:29:39 -0500 |
commit | bc28dc180c97c76542995d38276781a7357c784b (patch) | |
tree | ce1290d05daf40a5040ed88d300e753cd0f3879c | |
parent | 67161fc92b97a1b0ff54a37eacd68ef46dc00f9c (diff) | |
download | aur-bc28dc180c97c76542995d38276781a7357c784b.tar.gz |
Fix sed flags (#22)
`-iE` is not the same as `-Ei` :facepalm:
Also cleaned up the regex using `#` as a delimiter.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = python-pytorch-rocm pkgdesc = Tensors and Dynamic neural networks in Python with strong GPU acceleration pkgver = 1.7.1 - pkgrel = 6 + pkgrel = 7 url = https://pytorch.org arch = x86_64 license = BSD @@ -15,7 +15,7 @@ pkgname=() _pkgname="pytorch" pkgver=1.7.1 _pkgver=1.7.1 -pkgrel=6 +pkgrel=7 pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" arch=('x86_64') url="https://pytorch.org" @@ -108,7 +108,7 @@ build() { # Fix so amdip64 library ending with a dash python setup.py build --cmake-only - sed -iE 's/opt\/rocm\/hip\/lib\/libamdhip64\.so\.[0-9.]+-/opt\/rocm\/hip\/lib\/libamdhip64.so/' build/build.ninja + sed -E -i 's#opt/rocm/hip/lib/libamdhip64\.so\.[0-9.]+-#opt/rocm/hip/lib/libamdhip64.so#' build/build.ninja python setup.py build fi @@ -125,7 +125,7 @@ build() { # Fix so amdip64 library ending with a dash python setup.py build --cmake-only - sed -iE 's/opt\/rocm\/hip\/lib\/libamdhip64\.so\.[0-9.]+-/opt\/rocm\/hip\/lib\/libamdhip64.so/' build/build.ninja + sed -E -i 's#opt/rocm/hip/lib/libamdhip64\.so\.[0-9.]+-#opt/rocm/hip/lib/libamdhip64.so#' build/build.ninja python setup.py build fi |