diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2016-11-11 05:55:52 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-12-27 10:50:45 +0200 |
commit | 05cf83925d92f0ba608eec95a7cbf3187c6c12e7 (patch) | |
tree | 3f4bc40c7fc4929aebe243601900ddab454ada4e | |
parent | 23e867078a9b4a2afc13d5d3e6754eb3f0d1f8da (diff) | |
download | aports-05cf83925d92f0ba608eec95a7cbf3187c6c12e7.tar.bz2 aports-05cf83925d92f0ba608eec95a7cbf3187c6c12e7.tar.xz |
testing/py-feedgenerator: new aport
A Python feed generator
https://github.com/getpelican/feedgenerator
-rw-r--r-- | testing/py-feedgenerator/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/py-feedgenerator/APKBUILD b/testing/py-feedgenerator/APKBUILD new file mode 100644 index 0000000000..c6fddd88f0 --- /dev/null +++ b/testing/py-feedgenerator/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-feedgenerator +_pkgname=feedgenerator +pkgver=1.9 +pkgrel=0 +pkgdesc="A Python feed generator" +url="https://github.com/getpelican/feedgenerator" +arch="noarch" +license="GPL3+" +depends="py-six py-tz" +makedepends="python2-dev py-setuptools python3-dev" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +build() { + cd "$builddir" + python2 setup.py build || return 1 + python3 setup.py build || return 1 +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +md5sums="f542f4098dbb5c63a94c88cbfc727778 feedgenerator-1.9.tar.gz" +sha256sums="5ae05daa9cfa47fa406ee4744d0b7fa1c8a05a7a47ee0ad328ddf55327cfb106 feedgenerator-1.9.tar.gz" +sha512sums="77f4df51c6bdf261f0d1665206ab048a21f8660cf8f2c7abf3d71e17c63284240d0eaa690dd6d53b0b7d8ce9c9e0349094d5270c75c2a069608b7717538d7fa1 feedgenerator-1.9.tar.gz" |