summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlothar-mar2015-06-11 16:01:37 +0100
committerlothar-mar2015-06-11 16:01:37 +0100
commit389320df37527c3e2633dba69adc3260a5ab4c46 (patch)
tree69ba4f0b0e2b60e6fd4aa15f319a255808683ca9
downloadaur-python2-tstoolbox-git.tar.gz
Initial commit.
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD58
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dd9038068f0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = python2-tstoolbox-git
+ pkgdesc = The tstoolbox is a python script to manipulate time-series on the command line or by function calls within Pandas.
+ pkgver = 0.8.2
+ pkgrel = 1
+ url = https://bitbucket.org/timcera/tstoolbox
+ arch = i686
+ arch = x86_64
+ license = Sleepycat
+ makedepends = git
+ depends = python2>=2.7.6
+ depends = python2-pandas-git
+ depends = python2-baker>=1.3
+ depends = python2-dateutil>=1.3
+ provides = tstoolbox
+ conflicts = tstoolbox
+ md5sums = SKIP
+
+pkgname = python2-tstoolbox-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..10cd345a55b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+#Maintainer: Lothar_m <lothar_m at riseup dot net>
+
+pkgname='python2-tstoolbox-git'
+_gitname='tstoolbox'
+_gitroot='https://bitbucket.org/timcera/tstoolbox.git'
+pkgver=0.8.2
+pkgrel=1
+arch=('i686' 'x86_64')
+url="https://bitbucket.org/timcera/tstoolbox"
+depends=('python2>=2.7.6'
+ 'python2-pandas-git'
+ 'python2-baker>=1.3'
+ 'python2-dateutil>=1.3'
+ )
+# optdepends=(': ')
+makedepends=('git')
+license=('Sleepycat')
+pkgdesc="The tstoolbox is a python script to manipulate time-series on the command line or by function calls within Pandas."
+provides=(tstoolbox)
+conflicts=(tstoolbox)
+# source=("git://bitbucket.org/timcera/tstoolbox.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ # Use the tag of the last commit
+ git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd ${srcdir}
+ msg "Connecting to GIT server...."
+
+ if [ -d "$_gitname" ] ; then
+ cd "$_gitname" && git pull origin
+ msg "The local files are updated."
+ else
+ git clone ${_gitroot}
+ fi
+ msg "GIT checkout done or server timeout"
+
+ # cd "${_gitname}"
+ cd "$srcdir/$_gitname"
+
+# run setup.py
+ cd "$srcdir/$_gitname"
+ python2 setup.py build
+}
+
+package() {
+# install tstoolbox
+ cd "$srcdir/$_gitname"
+ python2 setup.py install --root=$pkgdir
+
+# install license
+ install -D -m644 "$srcdir/$_gitname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+