This line can probably be rewritten as

```rb
pkgconfig_files << pn if pn.text_executable? and pn.basename.to_s.end_with? '-config'
```