blob: 2bf0774ac691a8bf1895970beec31acbb50a6644 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
pkgname=python-freqtrade-git
pkgver=0.14.3.r10087.gf97e8104
pkgrel=1
pkgdesc="Free, open source crypto trading bot"
url="https://github.com/freqtrade/freqtrade"
arch=('any')
license=('GPLv3')
provides=('python-freqtrade')
makedepends=('python' 'python-setuptools')
depends=('python-sqlalchemy' 'python-cachetools'
'python-arrow' 'python-requests' 'ta-lib' 'python-pip'
'python-urllib3' 'python-wrapt' 'python-pandas' 'python-scikit-learn'
'python-scipy' 'python-jsonschema' 'python-numpy' 'python-pytest'
'python-pytest-mock' 'python-pytest-cov' 'python-networkx'
'python-telegram-bot' 'python-tabulate' 'python-hyperopt' 'python-ta-lib'
'python-bittrex' 'python-questionary' 'python-jinja' 'python-sdnotify' 'python-rapidjson'
'python-hyperopt' 'python-coinmarketcap' 'python-ccxt' 'python-certifi' 'python-aiohttp')
_branch="master"
source=("$pkgname"::"git://github.com/freqtrade/freqtrade.git#branch=${_branch}")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
version=$(git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
sed -i "s/^__version__.*$/__version__ = '$version'/g" freqtrade/__init__.py
echo $version
}
package() {
cd "$srcdir/$pkgname"
#pip install --prefix=/usr --root="hyperopt" hyperopt
python setup.py build
python setup.py install --prefix=/usr --root="$pkgdir"
install -D -m644 LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|