Skip to content

Commit 7f4217c

Browse files
author
qount25
committed
Fix: os-specific dependency names for pgsodium package
1 parent a9ac637 commit 7f4217c

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

packages/pgsodium.rb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,23 @@ class Pgsodium < Pgpm::Package
44
github "michelp/pgsodium"
55

66
def build_dependencies
7-
super + ["libsodium-devel >= 1.0.18"]
7+
deps = case Pgpm::OS.in_scope.class.name
8+
when "debian", "ubuntu"
9+
["libsodium-dev (>= 1.0.18)"]
10+
when "rocky+epel-9", "redhat", "fedora"
11+
["libsodium-devel >= 1.0.18"]
12+
end
13+
super + deps
814
end
915

1016
def dependencies
11-
super + ["libsodium >= 1.0.18"]
17+
deps = case Pgpm::OS.in_scope.class.name
18+
when "debian", "ubuntu"
19+
["libsodium (>= 1.0.18)"]
20+
when "rocky+epel-9", "redhat", "fedora"
21+
["libsodium >= 1.0.18"]
22+
end
23+
super + deps
1224
end
1325

1426
def broken?

0 commit comments

Comments
 (0)