#!/usr/bin/perl

%soversion = (
    AMD, "2.4.1",
    CAMD, "2.4.1",
    BTF, "1.2.1",
    COLAMD, "2.9.1",
    CCOLAMD, "2.9.1",
    CHOLMOD, "3.0.6",
    CSparse, "3.1.4",
    CXSparse, "3.1.4",
    KLU, "1.3.3",
    LDL, "2.2.1",
    UMFPACK, "5.7.1",
    SPQR, "2.0.2",
    SuiteSparse_config, "4.4.6"
);

die "Usage: $0 LIB\n" if $#ARGV != 0;

my $lib = $ARGV [0];
die "$0: Unknown library $lib\n" if not exists $soversion {$lib};

my $debpkg = lc ($lib);
$debpkg =~ s/_//;
$debpkg = "lib" . $debpkg . $soversion {$lib};

print $debpkg
