  	
  	if [ -z "$VERSION" ]; then
  		VERSION="$DEFAULT_VERSION_PREFIX$REV"
-@@ -416,40 +416,42 @@
+@@ -416,20 +416,21 @@
  
  # Linux
  if [ $BUILD_LINUX == 1 ]; then

 	
 		# Add Unix-specific Standalone assets
 		cd "$CALLDIR/assets/unix"
 		zip -0 -r -q "$APPDIR/chrome/zotero.jar" *
 		
 		# Add word processor plug-ins
-		mkdir "$APPDIR/extensions"
-		cp -RH "$CALLDIR/modules/zotero-libreoffice-integration" "$APPDIR/extensions/zoteroOpenOfficeIntegration@zotero.org"
-		perl -pi -e 's/SOURCE<\/em:version>/SA.'"$VERSION"'<\/em:version>/' "$APPDIR/extensions/zoteroOpenOfficeIntegration@zotero.org/install.rdf"
+###no-debian		mkdir "$APPDIR/extensions"
+###no-debian		cp -RH "$CALLDIR/modules/zotero-libreoffice-integration" "$STAGEDIR"
+###no-debian		perl -pi -e 's/SOURCE<\/em:version>/SA.'"$VERSION"'<\/em:version>/' "$STAGEDIR/zotero-libreoffice-integration/install.rdf"
 		
 		# Delete extraneous files
 		find "$APPDIR" -depth -type d -name .git -exec rm -rf {} \;


Index: zotero-standalone-build/build.sh
===================================================================
--- zotero-standalone-build.orig/build.sh	2012-11-13 21:46:50.000000000 +0100
+++ zotero-standalone-build/build.sh	2012-11-15 12:58:31.000000000 +0100
@@ -102,8 +102,8 @@
 	if [ $? != 0 ]; then
 		exit
