forked from OpenELEC/OpenELEC.tv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui and cli flexget availible on the add-on(). But just ui version used. flexget.ui is very beta right now. But accually it's working like cli version(kind of).
- Loading branch information
queeup
committed
Dec 19, 2011
1 parent
2da889a
commit a6b19ce
Showing
16 changed files
with
346 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
################################################################################ | ||
# This file is part of OpenELEC - http://www.openelec.tv | ||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) | ||
# | ||
# This Program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2, or (at your option) | ||
# any later version. | ||
# | ||
# This Program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with OpenELEC.tv; see the file COPYING. If not, write to | ||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
# http://www.gnu.org/copyleft/gpl.html | ||
################################################################################ | ||
|
||
. config/options $1 | ||
|
||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/$PKG_NAME | ||
cp -PR $PKG_BUILD/$PKG_NAME/* $ADDON_BUILD/$PKG_ADDON_ID/$PKG_NAME | ||
cp -PR $PKG_BUILD/flexget_vanilla.py $ADDON_BUILD/$PKG_ADDON_ID | ||
|
||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/pylib | ||
cp -PR $BUILD/flexgetlib*/* $ADDON_BUILD/$PKG_ADDON_ID/pylib |
2 changes: 2 additions & 0 deletions
2
packages/addons/service/downloadmanager/flexget/changelog.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
2.0 | ||
- initial version flexget-1.0r2552 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
################################################################################ | ||
# This file is part of OpenELEC - http://www.openelec.tv | ||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) | ||
# | ||
# This Program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2, or (at your option) | ||
# any later version. | ||
# | ||
# This Program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with OpenELEC.tv; see the file COPYING. If not, write to | ||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
# http://www.gnu.org/copyleft/gpl.html | ||
################################################################################ | ||
|
||
PKG_NAME="flexget" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
PKG_ARCHIVE_NAME="FlexGet" | ||
PKG_VERSION="1.0r2558" | ||
PKG_REV="0" | ||
PKG_ARCH="any" | ||
PKG_LICENSE="MIT" | ||
PKG_SITE="http://flexget.com/" | ||
PKG_URL="http://download.flexget.com/unstable/$PKG_ARCHIVE_NAME-$PKG_VERSION.tar.gz" | ||
PKG_DEPENDS="Python" | ||
PKG_BUILD_DEPENDS="toolchain Python flexgetlib" | ||
PKG_PRIORITY="optional" | ||
PKG_SECTION="service/downloadmanager" | ||
PKG_SHORTDESC="FlexGet is a multipurpose automation tool for content like torrents, nzbs, podcasts, comics, series, movies, etc." | ||
PKG_LONGDESC="FlexGet is a multipurpose automation tool for content like torrents, nzbs, podcasts, comics, series, movies, etc. FlexGet is able to handle different kinds of sources like RSS-feeds, html pages and csv files. There are even some plugins for sites that do not provide any kind of useful feeds." | ||
|
||
PKG_IS_ADDON="yes" | ||
PKG_ADDON_TYPE="xbmc.service" | ||
|
||
PKG_AUTORECONF="no" |
13 changes: 13 additions & 0 deletions
13
packages/addons/service/downloadmanager/flexget/patches/flexget-1.0r2558-activate_ui.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff -Naur flexget-1.0r2552/flexget_vanilla.py flexget-1.0r2552.patch/flexget_vanilla.py | ||
--- flexget-1.0r2552/flexget_vanilla.py 2010-10-17 19:36:51.000000000 +0300 | ||
+++ flexget-1.0r2552.patch/flexget_vanilla.py 2011-12-19 08:09:48.422991915 +0200 | ||
@@ -5,7 +5,7 @@ | ||
You need to have all dependencies installed in site-packages when using this. | ||
""" | ||
|
||
-import flexget | ||
+import flexget.ui | ||
|
||
if __name__ == '__main__': | ||
- flexget.main() | ||
+ flexget.ui.main() |
14 changes: 14 additions & 0 deletions
14
...ages/addons/service/downloadmanager/flexget/patches/flexget-1.0r2558-log_rotate_fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff -Naur flexget-1.0r2552/flexget/ui/__init__.py flexget-1.0r2552.patch/flexget/ui/__init__.py | ||
--- flexget-1.0r2552/flexget/ui/__init__.py 2011-08-06 20:29:14.000000000 +0300 | ||
+++ flexget-1.0r2552.patch/flexget/ui/__init__.py 2011-12-19 04:15:51.367848421 +0200 | ||
@@ -34,6 +34,9 @@ | ||
sys.exit(1) | ||
|
||
log_level = logging.getLevelName(options.loglevel.upper()) | ||
- logger.start(os.path.join(manager.config_base, 'flexget.log'), log_level) | ||
+ log_file = os.path.expanduser(manager.options.logfile) | ||
+ if not os.path.isabs(log_file): | ||
+ log_file = os.path.join(manager.config_base, log_file) | ||
+ logger.start(log_file, log_level) | ||
|
||
flexget.ui.webui.start(manager) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
################################################################################ | ||
# This file is part of OpenELEC - http://www.openelec.tv | ||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) | ||
# | ||
# This Program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2, or (at your option) | ||
# any later version. | ||
# | ||
# This Program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with OpenELEC.tv; see the file COPYING. If not, write to | ||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
# http://www.gnu.org/copyleft/gpl.html | ||
################################################################################ | ||
|
||
. config/options $1 | ||
|
||
mkdir -p $BUILD/${PKG_NAME}-${PKG_VERSION} | ||
tar -xzf $SOURCES/$1/${PKG_ARCHIVE_NAME}-${PKG_VERSION}.tar.gz -C $BUILD/${PKG_NAME}-${PKG_VERSION} | ||
mv $BUILD/${PKG_NAME}-${PKG_VERSION}/${PKG_ARCHIVE_NAME}-${PKG_VERSION}/* $BUILD/${PKG_NAME}-${PKG_VERSION}/ | ||
rm -rf $BUILD/${PKG_NAME}-${PKG_VERSION}/${PKG_ARCHIVE_NAME}-${PKG_VERSION} |
22 changes: 22 additions & 0 deletions
22
packages/addons/service/downloadmanager/flexget/source/addon.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<addon id="@PKG_ADDON_ID@" | ||
name="@PKG_NAME@" | ||
version="@ADDON_VERSION@" | ||
provider-name="queeup"> | ||
<requires> | ||
<import addon="os.openelec.tv" version="@OS_VERSION@"/> | ||
<import addon="xbmc.python" version="2.0"/> | ||
@REQUIRES@ | ||
</requires> | ||
<extension point="@PKG_ADDON_TYPE@" | ||
library="default.py"> | ||
<provides>executable</provides> | ||
</extension> | ||
<extension point="xbmc.addon.metadata"> | ||
<summary>@PKG_SHORTDESC@</summary> | ||
<description> | ||
@PKG_LONGDESC@ | ||
</description> | ||
<platform>all</platform> | ||
</extension> | ||
</addon> |
63 changes: 63 additions & 0 deletions
63
packages/addons/service/downloadmanager/flexget/source/bin/flexget.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/bin/sh | ||
|
||
################################################################################ | ||
# This file is part of OpenELEC - http://www.openelec.tv | ||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) | ||
# | ||
# This Program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2, or (at your option) | ||
# any later version. | ||
# | ||
# This Program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with OpenELEC.tv; see the file COPYING. If not, write to | ||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
# http://www.gnu.org/copyleft/gpl.html | ||
################################################################################ | ||
|
||
. /etc/profile | ||
|
||
ADDON_DIR="$HOME/.xbmc/addons/service.downloadmanager.flexget" | ||
ADDON_HOME="$HOME/.xbmc/userdata/addon_data/service.downloadmanager.flexget" | ||
LOG_FILE="$ADDON_HOME/service.log" | ||
|
||
export PYTHONPATH="$PYTHONPATH:$ADDON_DIR/pylib" | ||
|
||
mkdir -p $ADDON_HOME | ||
OPENELEC_SETTINGS="$ADDON_HOME/settings.xml" | ||
|
||
if [ ! -f "$OPENELEC_SETTINGS" ]; then | ||
cp $ADDON_DIR/settings.xml $OPENELEC_SETTINGS | ||
fi | ||
|
||
FLEXGET_START=`grep FLEXGET_START $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"` | ||
FLEXGET_PORT=`grep FLEXGET_PORT $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"` | ||
FLEXGET_AUTH=`grep FLEXGET_AUTH $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"` | ||
FLEXGET_USER=`grep FLEXGET_USER $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"` | ||
FLEXGET_PWD=`grep FLEXGET_PWD $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"` | ||
|
||
FLEXGET_ARG="$FLEXGET_ARG --logfile=/var/log/flexget.log" | ||
FLEXGET_ARG="$FLEXGET_ARG --port=$FLEXGET_PORT" | ||
FLEXGET_ARG="$FLEXGET_ARG --daemonize" | ||
|
||
if [ "$FLEXGET_AUTH" = "true" ]; then | ||
FLEXGET_ARG="$FLEXGET_ARG --username=$FLEXGET_USER" | ||
FLEXGET_ARG="$FLEXGET_ARG --password=$FLEXGET_PWD" | ||
else | ||
FLEXGET_ARG="$FLEXGET_ARG --no-auth" | ||
fi | ||
|
||
################################################################################ | ||
# start flexget | ||
################################################################################ | ||
if [ ! $(pidof flexget) ];then | ||
if [ "$FLEXGET_START" = "true" ]; then | ||
ln -s $ADDON_DIR/flexget_vanilla.py $ADDON_DIR/bin/flexget | ||
flexget $FLEXGET_ARG -c $ADDON_HOME/config.yml &>$LOG_FILE | ||
fi | ||
fi |
23 changes: 23 additions & 0 deletions
23
packages/addons/service/downloadmanager/flexget/source/default.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
################################################################################ | ||
# This file is part of OpenELEC - http://www.openelec.tv | ||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) | ||
# | ||
# This Program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2, or (at your option) | ||
# any later version. | ||
# | ||
# This Program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with OpenELEC.tv; see the file COPYING. If not, write to | ||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
# http://www.gnu.org/copyleft/gpl.html | ||
################################################################################ | ||
|
||
import xbmc, time, os, subprocess | ||
|
||
os.system("flexget.service") |
13 changes: 13 additions & 0 deletions
13
...ages/addons/service/downloadmanager/flexget/source/resources/language/English/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<strings> | ||
|
||
<!-- Flexget --> | ||
<string id="1000">Flexget</string> | ||
<string id="1010">User Settings</string> | ||
<string id="1020">Start flexget on boot</string> | ||
<string id="1021">Port</string> | ||
<string id="1022">Use authentication</string> | ||
<string id="1023">Username</string> | ||
<string id="1024">Password</string> | ||
|
||
</strings> |
13 changes: 13 additions & 0 deletions
13
...ages/addons/service/downloadmanager/flexget/source/resources/language/Turkish/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<strings> | ||
|
||
<!-- Flexget --> | ||
<string id="1000">Flexget</string> | ||
<string id="1010">Kullanıcı Ayarları</string> | ||
<string id="1020">Flexget'i önyüklemede çalıştır</string> | ||
<string id="1021">Port</string> | ||
<string id="1022">Kimlik doğrulama kullan</string> | ||
<string id="1023">Kullanıcı adı</string> | ||
<string id="1024">Parola</string> | ||
|
||
</strings> |
15 changes: 15 additions & 0 deletions
15
packages/addons/service/downloadmanager/flexget/source/resources/settings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<settings> | ||
|
||
<!-- Transmission --> | ||
<category label="1000"> | ||
<setting label="1010" type="lsep"/> | ||
<setting type="sep" /> | ||
<setting id="FLEXGET_START" type="bool" label="1020" default="false" /> | ||
<setting id="FLEXGET_PORT" type="number" label="1021" default="5050" /> | ||
<setting id="FLEXGET_AUTH" type="bool" label="1022" default="false" /> | ||
<setting id="FLEXGET_USER" type="text" label="1023" default="flexget" enable="eq(-1,true)"/> | ||
<setting id="FLEXGET_PWD" type="text" label="1024" default="flexget" enable="eq(-2,true)"/> | ||
</category> | ||
|
||
</settings> |
7 changes: 7 additions & 0 deletions
7
packages/addons/service/downloadmanager/flexget/source/settings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<settings> | ||
<setting id="FLEXGET_START" value="false" /> | ||
<setting id="FLEXGET_PORT" value="5050" /> | ||
<setting id="FLEXGET_AUTH" value="false" /> | ||
<setting id="FLEXGET_PWD" value="flexget" /> | ||
<setting id="FLEXGET_USER" value="flexget" /> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
################################################################################ | ||
# This file is part of OpenELEC - http://www.openelec.tv | ||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) | ||
# | ||
# This Program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2, or (at your option) | ||
# any later version. | ||
# | ||
# This Program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with OpenELEC.tv; see the file COPYING. If not, write to | ||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
# http://www.gnu.org/copyleft/gpl.html | ||
################################################################################ | ||
|
||
PKG_NAME="flexgetlib" | ||
PKG_VERSION="1.0.0" | ||
PKG_REV="0" | ||
PKG_ARCH="any" | ||
PKG_LICENSE="?" | ||
PKG_SITE="?" | ||
PKG_URL="https://github.com/downloads/queeup/OpenELEC.tv/$PKG_NAME-$PKG_VERSION.tar.gz" | ||
PKG_DEPENDS="" | ||
PKG_BUILD_DEPENDS="" | ||
PKG_PRIORITY="optional" | ||
PKG_SECTION="service/downloadmanager" | ||
PKG_SHORTDESC="FlexGet required libs." | ||
PKG_LONGDESC="FlexGet required libs." | ||
|
||
PKG_IS_ADDON="no" | ||
PKG_ADDON_TYPE="" | ||
|
||
PKG_AUTORECONF="no" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
|
||
################################################################################ | ||
# This file is part of OpenELEC - http://www.openelec.tv | ||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) | ||
# | ||
# This Program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2, or (at your option) | ||
# any later version. | ||
# | ||
# This Program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with OpenELEC.tv; see the file COPYING. If not, write to | ||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
# http://www.gnu.org/copyleft/gpl.html | ||
################################################################################ | ||
|
||
. config/options $1 | ||
|
||
mkdir -p $BUILD/${PKG_NAME}-${PKG_VERSION} | ||
tar -xzf $SOURCES/$1/${PKG_NAME}-${PKG_VERSION}.tar.gz -C $BUILD/${PKG_NAME}-${PKG_VERSION} |
why you dont call the PKG_NAME "FlexGet" this saves you PKG_ARCHIVE_NAME and the unpack/rename script