---
name: "Dist::Build::ShareDir"
section: "3pm"
platform: "linux"
package: "libdist-build-perl"
version: "0.020-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Dist::Build::ShareDir"
---

# Dist::Build::ShareDir(3pm)

Sharedir support for Dist::Build

## NAME

Dist::Build::ShareDir - Sharedir support for Dist::Build

## VERSION

version 0.020

## SYNOPSIS

```
 load_extension("Dist::Build::ShareDir");
 dist_sharedir('share', 'Foo-Bar');
 module_sharedir('foo', 'Foo::Bar');
```

## DESCRIPTION

This Dist::Build extension implements sharedirs. It does not take any arguments at loading time, and exposts two functions to the planner:

### dist\_sharedir($dir, $distribution)

This marks `$dir` as the source sharedir for the distribution `$distribution`. If `$distribution` isn't given, it defaults to the `"distribution"` of the planner.

### module\_sharedir($dir, $module\_name)

This marks `$dir` as the source sharedir for the module `$module_name`. If `$module_name` isn't given, it defaults to the `"main_module"` of the planner.

## AUTHOR

Leon Timmermans \<fawaka@gmail.com\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2024 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
