diff options
author | Daniel Bermond | 2018-04-14 14:56:41 +0000 |
---|---|---|
committer | Daniel Bermond | 2018-04-14 14:56:41 +0000 |
commit | ba1a2e54be2b3d920a8e38e770116f2f1891ac3b (patch) | |
tree | 4b681a407b46d574abfb7d6ff6fdf495c34c4e59 /PKGBUILD | |
parent | 8ed1bb62e08385d70b9c5e638860175e2e6928c2 (diff) | |
download | aur-ba1a2e54be2b3d920a8e38e770116f2f1891ac3b.tar.gz |
prepare(): improve install prefix assignment method
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,7 +1,7 @@ # Maintainer: Daniel Bermond < yahoo-com: danielbermond > pkgname=intel-seapi-git -pkgver=17.01.28.r21.g16904d4 +pkgver=17.01.28.r25.gf41831f pkgrel=1 pkgdesc='Intel Single Event API (Intel SEAPI) (git version)' arch=('i686' 'x86_64') @@ -24,7 +24,9 @@ prepare() { # set install prefix if ! grep -q "(\"\-DCMAKE_INSTALL_PREFIX:PATH='/usr'\"),$" buildall.py then - sed -i "282i\ \(\"-DCMAKE_INSTALL_PREFIX:PATH='/usr'\")," buildall.py + local _unix_line="$(sed -n "/generator[[:space:]]=[[:space:]]'Unix[[:space:]]Makefiles'/=" buildall.py)" + + sed -i "$((_unix_line + 4))i\\ \\(\"-DCMAKE_INSTALL_PREFIX:PATH='/usr'\")," buildall.py fi } |