* setup /usr/bin/filebot via postinst/prerem scripts
This commit is contained in:
parent
c7e001c033
commit
8e821d9a17
39
build.xml
39
build.xml
|
@ -187,43 +187,38 @@
|
|||
</target>
|
||||
|
||||
<target name="deb-arch">
|
||||
<deb todir="${dir.dist}" package="filebot" version="${version}" architecture="${arch}" section="misc" depends="default-jre-headless" recommends="default-jre" suggests="openjdk-7-jre" homepage="http://filebot.sourceforge.net" priority="optional">
|
||||
<deb todir="${dir.dist}" package="filebot" version="${version}" architecture="${arch}" section="misc" depends="default-jre-headless" recommends="default-jre" suggests="openjdk-7-jre" homepage="http://filebot.sourceforge.net" priority="optional" postinst="${dir.installer}/deb/postinst.sh" prerm="${dir.installer}/deb/prerem.sh">
|
||||
<maintainer name="Reinhard Pointner" email="rednoah@users.sourceforge.net" />
|
||||
<description synopsis="The ultimate tv renamer / subtitle downloader / sfv validator">FileBot is the ultimate tool for renaming your tv shows and anime, downloading subtitles from various sources or just simple file verification.</description>
|
||||
<tarfileset fullpath="usr/share/filebot/FileBot.jar" file="${path.fatjar}" />
|
||||
<tarfileset prefix="usr/share/filebot" dir="${dir.lib}/native/linux-${arch}" includes="*.so" />
|
||||
<tarfileset prefix="usr/share/filebot" file="${dir.installer}/icons/icon48.png" />
|
||||
<tarfileset prefix="usr/share/filebot/bin" file="${dir.installer}/deb/filebot.sh" filemode="755" />
|
||||
<tarfileset fullpath="usr/bin/filebot" file="${dir.installer}/deb/filebot.sh" filemode="755" />
|
||||
<tarfileset prefix="usr/share/applications" file="${dir.installer}/deb/FileBot.desktop" />
|
||||
</deb>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="ipkg" depends="fatjar" description="Build ipkg package for ARM">
|
||||
<target name="ipkg" depends="fatjar" description="Build ipkg package for ARM and ATOM">
|
||||
<taskdef resource="ant_deb_task.properties" classpath="${dir.lib}/build/ant-deb.jar" />
|
||||
|
||||
<deb todir="${dir.dist}" package="filebot" version="${version}" architecture="arm" section="misc" homepage="http://filebot.sourceforge.net" priority="optional">
|
||||
<maintainer name="Reinhard Pointner" email="rednoah@users.sourceforge.net" />
|
||||
<description synopsis="The ultimate tv renamer / subtitle downloader / sfv validator">FileBot is the ultimate tool for renaming your tv shows and anime, downloading subtitles from various sources or just simple file verification.</description>
|
||||
<tarfileset fullpath="usr/share/filebot/FileBot.jar" file="${path.fatjar}" />
|
||||
<tarfileset prefix="usr/share/filebot" dir="${dir.lib}/native/linux-arm" includes="*.so" />
|
||||
<tarfileset prefix="usr/share/filebot" file="${dir.installer}/icons/icon48.png" />
|
||||
<tarfileset prefix="usr/share/filebot/bin" file="${dir.installer}/ipkg/filebot.sh" filemode="755" />
|
||||
<tarfileset fullpath="usr/bin/filebot" file="${dir.installer}/ipkg/filebot.sh" filemode="755" />
|
||||
</deb>
|
||||
<move tofile="${dir.dist}/filebot_2.62_arm.ipk" file="${dir.dist}/filebot_2.62_arm.deb" overwrite="true" />
|
||||
<antcall target="ipkg-arch">
|
||||
<param name="arch" value="arm" />
|
||||
</antcall>
|
||||
<antcall target="ipkg-arch">
|
||||
<param name="arch" value="i686" />
|
||||
</antcall>
|
||||
</target>
|
||||
|
||||
<deb todir="${dir.dist}" package="filebot" version="${version}" architecture="i686" section="misc" homepage="http://filebot.sourceforge.net" priority="optional">
|
||||
<maintainer name="Reinhard Pointner" email="rednoah@users.sourceforge.net" />
|
||||
<description synopsis="The ultimate tv renamer / subtitle downloader / sfv validator">FileBot is the ultimate tool for renaming your tv shows and anime, downloading subtitles from various sources or just simple file verification.</description>
|
||||
<tarfileset fullpath="usr/share/filebot/FileBot.jar" file="${path.fatjar}" />
|
||||
<tarfileset prefix="usr/share/filebot" dir="${dir.lib}/native/linux-i386" includes="*.so" />
|
||||
<tarfileset prefix="usr/share/filebot" file="${dir.installer}/icons/icon48.png" />
|
||||
<tarfileset prefix="usr/share/filebot/bin" file="${dir.installer}/ipkg/filebot.sh" filemode="755" />
|
||||
<tarfileset fullpath="usr/bin/filebot" file="${dir.installer}/ipkg/filebot.sh" filemode="755" />
|
||||
<target name="ipkg-arch">
|
||||
<deb todir="${dir.dist}" package="filebot" version="${version}" architecture="${arch}" section="misc" homepage="http://filebot.sourceforge.net" priority="optional" postinst="${dir.installer}/ipkg/postinst.sh" prerm="${dir.installer}/ipkg/prerem.sh">
|
||||
<maintainer name="Reinhard Pointner" email="rednoah@users.sourceforge.net" />
|
||||
<description synopsis="The ultimate tv renamer / subtitle downloader / sfv validator">FileBot is the ultimate tool for renaming your tv shows and anime, downloading subtitles from various sources or just simple file verification.</description>
|
||||
<tarfileset fullpath="usr/share/filebot/FileBot.jar" file="${path.fatjar}" />
|
||||
<tarfileset prefix="usr/share/filebot" dir="${dir.lib}/native/linux-${arch}" includes="*.so" />
|
||||
<tarfileset prefix="usr/share/filebot/bin" file="${dir.installer}/ipkg/filebot.sh" filemode="755" />
|
||||
</deb>
|
||||
<move tofile="${dir.dist}/filebot_2.62_i686.ipk" file="${dir.dist}/filebot_2.62_i686.deb" overwrite="true" />
|
||||
<move tofile="${dir.dist}/filebot_${version}_${arch}.ipk" file="${dir.dist}/filebot_${version}_${arch}.deb" overwrite="true" />
|
||||
</target>
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
ln -s /usr/share/filebot/bin/filebot.sh /usr/bin/filebot
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
rm /usr/bin/filebot
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
ln -s /usr/share/filebot/bin/filebot.sh /usr/bin/filebot
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
rm /usr/bin/filebot
|
Loading…
Reference in New Issue