Skip to content

Commit

Permalink
add aniso8601 and pyarkosclient
Browse files Browse the repository at this point in the history
  • Loading branch information
peakwinter committed Feb 27, 2016
1 parent 3e242ed commit 365a89e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
20 changes: 20 additions & 0 deletions python2-aniso8601/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
_pkgbase=aniso8601
pkgname=python2-aniso8601
pkgver=1.1.0
pkgrel=1
pkgdesc="A library for parsing ISO 8601 strings"
arch=('any')
url="http://pypi.python.org/pypi/aniso8601"
license=("BSD")
depends=('python2' 'python2-dateutil')
source=(http://pypi.python.org/packages/source/a/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz)
sha1sums=('633fb66401021803755a3e082f5f9dc410ec4b04')

build() {
:
}

package() {
cd "$srcdir"/${_pkgbase}-$pkgver
python2 setup.py install --root="$pkgdir"
}
30 changes: 30 additions & 0 deletions python2-arkosclient/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Maintainer: Jacob Cook <jacob at citizenweb dot io>

pkgname=python2-arkosclient
pkgver=0.2
pkgrel=1
pkgdesc="Python bindings for remote management of arkOS servers via their Kraken REST API"

arch=('any')
url="https://git.coderouge.co/arkOS/pyarkosclient.git"
license=('GPLv3')
depends=('python2')
makedepends=('python2' 'python2-distribute' 'python2-requests' 'python2-aniso8601')
source=("$pkgname-$pkgver.tar.gz"::"https://git.coderouge.co/arkOS/pyarkosclient/repository/archive.tar.gz?ref=$pkgver")
md5sums=('1306ab37ae41fe00de26ff569cacca37')

build() {
cd "$srcdir"
tar xvzf "$pkgname-$pkgver.tar.gz"

msg2 'Replacing python shebang by python2 shebang...'
find . -type f -exec sed -i \
-e'1s|^#!/usr/bin/env python$|#!/usr/bin/env python2|' \
-e '1s|^#!/usr/bin/python$|#!/usr/bin/env python2|' \
"{}" \;
}

package() {
cd "$srcdir/pyarkosclient-$pkgver-"*
python2 setup.py install --root="$pkgdir/" --optimize=1
}

0 comments on commit 365a89e

Please sign in to comment.