I don't know why you changed the filename, but the two lines can be simplified to:
```ruby
prefix.install 'src/libvirt-php.so' => 'libvirtphp.so'
```