From 1805df451b49c7685afd7979d40cb80122083521 Mon Sep 17 00:00:00 2001
From: Max Kirillov <max@max630.net>
Date: Sat, 4 Feb 2012 13:13:08 +0200
Subject: [PATCH 3/3] lowercase libraries

---
 Distribution/Package/Debian.hs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Distribution/Package/Debian.hs b/Distribution/Package/Debian.hs
index e1f71f8..a631e86 100644
--- a/Distribution/Package/Debian.hs
+++ b/Distribution/Package/Debian.hs
@@ -806,7 +806,7 @@ adapt (PkgConfigDepends (Dependency (PackageName pkg) _))
             (ExitSuccess, out, _) -> [takeWhile (not . isSpace) out]
             _ -> []
 adapt (ExtraLibs "gcrypt") = ["libgcrypt11-dev"]
-adapt (ExtraLibs x) = ["lib" ++ x ++ "-dev"]
+adapt (ExtraLibs x) = ["lib" ++ map toLower x ++ "-dev"]
 adapt dep
   = [name]
   where  (Dependency (PackageName name) _) = unboxDependency dep
-- 
1.7.6.3
