-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e242ed
commit 365a89e
Showing
2 changed files
with
50 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,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" | ||
} |
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 @@ | ||
# 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 | ||
} |