diff --git a/build/extlib/LanguagePacks/es.xml.gz b/build/extlib/LanguagePacks/es.xml.gz
new file mode 100644
index 0000000000..baf6cc0bc1
Binary files /dev/null and b/build/extlib/LanguagePacks/es.xml.gz differ
diff --git a/metadata/com.anysoftkeyboard.languagepack.spain.txt b/metadata/com.anysoftkeyboard.languagepack.spain.txt
new file mode 100644
index 0000000000..67ee8f6069
--- /dev/null
+++ b/metadata/com.anysoftkeyboard.languagepack.spain.txt
@@ -0,0 +1,34 @@
+Category:Office
+License:GNUFDL/CCBYSA
+Web Site:https://github.com/anysoftkeyboard
+Source Code:http://softkeyboard.googlecode.com/svn/trunk/LanguagePacks/Spain
+Issue Tracker:https://github.com/AnySoftKeyboard/LanguagePack/issues
+Donate:http://code.google.com/p/softkeyboard
+
+Name:AnySoftKeyboard: Spanish
+Summary:Language pack for AnySoftKeyboard
+Description:
+Dictionary is based on the Wikipedia article database
+which can be distributed under the terms of either the GNU Free Documentation
+or the Creative Commons Attribution-ShareAlike licenses and
+has about 200,000 words.
+
+Install [[com.menny.android.anysoftkeyboard]] first, then select
+the desired layout from AnySoftKeyboard's Settings->Keyboards menu.
+.
+
+Repo Type:svn
+Repo:http://softkeyboard.googlecode.com/svn/trunk/LanguagePacks/Spain
+
+Build Version:20110717,3,1813,\
+patch=xml.patch;dump.patch,extlibs=LanguagePacks/es.xml.gz,\
+srclibs=AnySoftKeyboard-API@b21d8907;AnySoftKeyboardTools@73e9a09496,prebuild=\
+sed -i 's@\(.1=\).*@\1$$AnySoftKeyboard-API$$@' project.properties && \
+mkdir -p dict/ res/raw/ && gunzip -c libs/es.xml.gz > dict/words.xml && \
+rm -rf assets/,build=java -jar $$AnySoftKeyboardTools$$/makedict/makedict.jar
+
+Auto Update Mode:None
+Update Check Mode:RepoManifest
+Current Version:20110717
+Current Version Code:3
+
diff --git a/metadata/com.anysoftkeyboard.languagepack.spain/dump.patch b/metadata/com.anysoftkeyboard.languagepack.spain/dump.patch
new file mode 100644
index 0000000000..e3a3ec1da4
--- /dev/null
+++ b/metadata/com.anysoftkeyboard.languagepack.spain/dump.patch
@@ -0,0 +1,12 @@
+Index: esbuild.sh
+===================================================================
+--- a/esbuild.sh (revision 0)
++++ b/esbuild.sh (working copy)
+@@ -0,0 +1,7 @@
++curl http://dumps.wikimedia.org/eswiki/20130521/eswiki-20130521-pages-articles.xml.bz2 -o eswiki-latest-pages-articles.xml.bz
++bzcat eswiki-latest-pages-articles.xml.bz > eswiki-latest-pages-articles.txt
++cat eswiki-latest-pages-articles.txt | grep -v '<[a-z]*\s' | grep -v '&[a-z0-9]*;' | tr '[:punct:][:blank:][:digit:]' '\n' | tr 'A-Z' 'a-z' | tr 'ÁÉÍÓÚÜÑÇ'
++'áéíóúüñç' > eswiki-latest-pages-articles.trim.txt
++cat eswiki-latest-pages-articles.trim.txt | uniq > eswiki-latest-pages-articles.unique.txt
++cat eswiki-latest-pages-articles.unique.txt | sort -f -T . | uniq -c | sort -nr -T . > eswiki-latest-pages-articles.sort.txt
++cat eswiki-latest-pages-articles.sort.txt | head -n 200000 | tail -n +2 | awk '{print ""$2""}' > eswiki-latest-pages-articles.dict.txt
diff --git a/metadata/com.anysoftkeyboard.languagepack.spain/xml.patch b/metadata/com.anysoftkeyboard.languagepack.spain/xml.patch
new file mode 100644
index 0000000000..02a1e25283
--- /dev/null
+++ b/metadata/com.anysoftkeyboard.languagepack.spain/xml.patch
@@ -0,0 +1,10 @@
+--- a/res/xml/dictionaries.xml (revision 1813)
++++ b/res/xml/dictionaries.xml (working copy)
+@@ -1,4 +1,4 @@
+
+
+-
+-
+\ No newline at end of file
++
++