Commit a8bbb56ebd795376548ca0415b68b06d70aac705

Thomas de Grivel 2023-02-22T14:59:59

libbsd, libmd

diff --git a/lib/rbpkg/repos/libbsd.rb b/lib/rbpkg/repos/libbsd.rb
new file mode 100644
index 0000000..4b8f771
--- /dev/null
+++ b/lib/rbpkg/repos/libbsd.rb
@@ -0,0 +1,26 @@
+require "#{__FILE__}/../../repo"
+
+class Rbpkg::Repos::Libbsd < Rbpkg::Repo
+
+  def_name("libbsd")
+
+  def branch
+    "main"
+  end
+
+  def dependencies
+    ["libmd"]
+  end
+
+  def dir
+    "freedesktop.org/libbsd"
+  end
+
+  def git_url
+    "https://gitlab.freedesktop.org/libbsd/libbsd.git"
+  end
+
+  def system_package?
+    Rbpkg.os.match?(/BSD/)
+  end
+end
diff --git a/lib/rbpkg/repos/libmd.rb b/lib/rbpkg/repos/libmd.rb
new file mode 100644
index 0000000..f54ed77
--- /dev/null
+++ b/lib/rbpkg/repos/libmd.rb
@@ -0,0 +1,22 @@
+require "#{__FILE__}/../../repo"
+
+class Rbpkg::Repos::Libmd < Rbpkg::Repo
+
+  def_name("libmd")
+
+  def branch
+    "main"
+  end
+
+  def dir
+    "hadrons.org/libmd"
+  end
+
+  def git_url
+    "https://git.hadrons.org/git/libmd.git"
+  end
+
+  def system_package?
+    Rbpkg.os.match?(/BSD/)
+  end
+end