mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
Ncurses fix paths & test (#3121)
* fix hardcoded paths * test * dirname "$0"
This commit is contained in:
parent
0441e7d8ad
commit
fbba37b856
1 changed files with 14 additions and 1 deletions
|
@ -31,6 +31,13 @@ build:
|
|||
rmdir ncursesw
|
||||
ln -sf . ncursesw
|
||||
|
||||
# fix hardcoded paths
|
||||
sed -i.bak 's|{{prefix}}|\${pcfiledir}/../..|g' {{prefix}}/lib/pkgconfig/*.pc
|
||||
rm {{prefix}}/lib/pkgconfig/*.bak
|
||||
|
||||
sed -i.bak 's|{{prefix}}|\$(dirname "\$0")/..|g' {{prefix}}/bin/ncursesw{{version.major}}-config
|
||||
rm {{prefix}}/bin/ncursesw{{version.major}}-config.bak
|
||||
|
||||
env:
|
||||
PCDIR: ${{prefix}}/lib/pkgconfig
|
||||
ARGS:
|
||||
|
@ -50,7 +57,13 @@ runtime:
|
|||
# ^^ we delegate to the system first since they may apply platform specific info
|
||||
|
||||
test:
|
||||
script: true #FIXME
|
||||
dependencies:
|
||||
freedesktop.org/pkg-config: ^0.29
|
||||
script: |
|
||||
ncursesw6-config --version | grep {{version.marketing}}
|
||||
ncursesw6-config --terminfo-dirs | grep '{{prefix}}'
|
||||
pkg-config --modversion ncursesw | grep {{version.marketing}}
|
||||
pkg-config --libs ncursesw | grep '{{prefix}}'
|
||||
|
||||
provides:
|
||||
- bin/captoinfo
|
||||
|
|
Loading…
Reference in a new issue