f6aa817 ghc-deps.sh: split off buildroot from the ghclibdir arg for more precise paths

Authored and Committed by petersen 2 years ago
    ghc-deps.sh: split off buildroot from the ghclibdir arg for more precise paths
    
    This allows using the ghclibdir for checking for prof libs,
    avoiding collisions with other ghcX.Y-*-prof files:
    
    Processing files: ghc-doctemplates-prof-0.9-7.fc37.x86_64
    /usr/lib/rpm/ghc-deps.sh: line 60: [: too many arguments
    /usr/lib/rpm/ghc-deps.sh: line 60: [: too many arguments
    /usr/lib/rpm/ghc-deps.sh: line 60: [: too many arguments
    
        
file modified
+9 -9
file modified
+5 -1
file modified
+2 -2