diff --git a/build.xml b/build.xml
index 1c26353e..c57de3f7 100644
--- a/build.xml
+++ b/build.xml
@@ -525,49 +525,55 @@
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
- FileBot is the ultimate tool for renaming your movies, tv shows or anime and even downloading subtitles. It's smart, streamlined for simplicity and just works. Putting the super-efficient UI aside, it's also got a full-featured command-line interface and scripting engine for all sorts of automation. Anything is possible.
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- FileBot is the ultimate tool for renaming your movies, tv shows or anime and even downloading subtitles. It's smart, streamlined for simplicity and just works. Putting the super-efficient UI aside, it's also got a full-featured command-line interface and scripting engine for all sorts of automation. Anything is possible.
-
-
-
-
-
+
+
+
+
+
@@ -737,7 +743,7 @@
-
+
@@ -916,8 +922,8 @@
-
-
+
+
diff --git a/installer/deb/FileBot.desktop b/installer/deb/FileBot.desktop
deleted file mode 100644
index 119e61ab..00000000
--- a/installer/deb/FileBot.desktop
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Name=FileBot
-Comment=Rename Movies or TV Shows and download Subtitles
-Type=Application
-Exec=/usr/share/filebot/bin/filebot.sh
-Icon=/usr/share/filebot/icon.svg
-Terminal=false
-StartupNotify=true
-Categories=AudioVideo;Video;FileTools;Java
diff --git a/installer/deb/control/control b/installer/deb/control/control
new file mode 100644
index 00000000..1361ddfa
--- /dev/null
+++ b/installer/deb/control/control
@@ -0,0 +1,8 @@
+Package: filebot
+Version: @{version}
+Architecture: @{deb.arch}
+Maintainer: Reinhard Pointner
+Description: The ultimate TV and Movie Renamer
+Homepage: http://www.filebot.net/
+Section: utils
+Priority: extra
diff --git a/installer/deb/control/postinst b/installer/deb/control/postinst
new file mode 100644
index 00000000..498f3e75
--- /dev/null
+++ b/installer/deb/control/postinst
@@ -0,0 +1,2 @@
+#!/bin/sh
+ln -sf @{deb.prefix}/share/filebot/filebot.sh @{deb.prefix}/bin/filebot
diff --git a/installer/deb/control/prerm b/installer/deb/control/prerm
new file mode 100644
index 00000000..75bc16ce
--- /dev/null
+++ b/installer/deb/control/prerm
@@ -0,0 +1,2 @@
+#!/bin/sh
+rm -f @{deb.prefix}/bin/filebot
diff --git a/installer/deb/deb/FileBot.desktop b/installer/deb/deb/FileBot.desktop
new file mode 100644
index 00000000..9967c4f6
--- /dev/null
+++ b/installer/deb/deb/FileBot.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=FileBot
+Comment=The ultimate TV and Movie Renamer
+Type=Application
+Exec=@{deb.prefix}/share/filebot/filebot.sh
+Icon=@{deb.prefix}/share/filebot/icon.svg
+Terminal=false
+StartupNotify=true
+Categories=AudioVideo;Video;FileTools
diff --git a/installer/deb/filebot.sh b/installer/deb/deb/filebot.sh
similarity index 94%
rename from installer/deb/filebot.sh
rename to installer/deb/deb/filebot.sh
index b5c7d4e2..ab0b5600 100644
--- a/installer/deb/filebot.sh
+++ b/installer/deb/deb/filebot.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-APP_ROOT="/usr/share/filebot"
+APP_ROOT=@{deb.prefix}/share/filebot
if [ -z "$HOME" ]; then
echo '$HOME must be set'
diff --git a/installer/ipkg/filebot.sh b/installer/deb/ipk/filebot.sh
similarity index 96%
rename from installer/ipkg/filebot.sh
rename to installer/deb/ipk/filebot.sh
index 6680fcba..7523408c 100644
--- a/installer/ipkg/filebot.sh
+++ b/installer/deb/ipk/filebot.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-APP_ROOT="/opt/share/filebot"
+APP_ROOT=@{deb.prefix}/share/filebot
# make sure required environment variables are set
if [ -z "$USER" ]; then
diff --git a/installer/deb/postinst.sh b/installer/deb/postinst.sh
deleted file mode 100644
index fb566a20..00000000
--- a/installer/deb/postinst.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-# create /bin symlink
-ln -s -f /usr/share/filebot/bin/filebot.sh /usr/bin/filebot
diff --git a/installer/deb/prerm.sh b/installer/deb/prerm.sh
deleted file mode 100644
index a07e2b39..00000000
--- a/installer/deb/prerm.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-# remove /bin symlink
-rm -f /usr/bin/filebot
diff --git a/installer/ipkg/postinst.sh b/installer/ipkg/postinst.sh
deleted file mode 100644
index b10aaa63..00000000
--- a/installer/ipkg/postinst.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-# create /bin symlink
-ln -s -f /opt/share/filebot/bin/filebot.sh /opt/bin/filebot
diff --git a/installer/ipkg/prerm.sh b/installer/ipkg/prerm.sh
deleted file mode 100644
index 5e71bc50..00000000
--- a/installer/ipkg/prerm.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-# remove /bin symlink
-rm -f /opt/bin/filebot
diff --git a/ivy.xml b/ivy.xml
index 187d4246..2885600b 100644
--- a/ivy.xml
+++ b/ivy.xml
@@ -38,5 +38,6 @@
+
diff --git a/lib/jars/ant-deb.jar b/lib/jars/ant-deb.jar
deleted file mode 100644
index 4625436e..00000000
Binary files a/lib/jars/ant-deb.jar and /dev/null differ
diff --git a/lib/jars/ant-spk.jar b/lib/jars/ant-spk.jar
deleted file mode 100644
index aae8498a..00000000
Binary files a/lib/jars/ant-spk.jar and /dev/null differ