summaryrefslogtreecommitdiffabout
path: root/lib/SlackBuild/Request/Loader/sbo.pm
Side-by-side diff
Diffstat (limited to 'lib/SlackBuild/Request/Loader/sbo.pm') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/SlackBuild/Request/Loader/sbo.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/SlackBuild/Request/Loader/sbo.pm b/lib/SlackBuild/Request/Loader/sbo.pm
new file mode 100644
index 0000000..bb0ec77
--- a/dev/null
+++ b/lib/SlackBuild/Request/Loader/sbo.pm
@@ -0,0 +1,15 @@
+package SlackBuild::Request::Loader::sbo;
+use strict;
+use warnings;
+use Net::SBo;
+
+our $PRIORITY = 40;
+
+sub Load {
+ my ($class, $reqname) = @_;
+ if (my ($dir,$commit) = Net::SBo->new->find($reqname)) {
+ return { package => $reqname, slackbuild_uri => "sbo://$commit/$dir"};
+ }
+}
+
+1;

Return to:

Send suggestions and report system problems to the System administrator.