diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 19:47:26 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 19:57:14 -0300 |
commit | c22686186813d8d394a832ab652468add74dd931 (patch) | |
tree | c1ebd895492cfd2afafd45fe1d7dd03b350f9875 /testing/py3-enchant | |
parent | 9dbae86b733c5d459ba2e029aa54ec802178a8fe (diff) | |
download | aports-c22686186813d8d394a832ab652468add74dd931.tar.bz2 aports-c22686186813d8d394a832ab652468add74dd931.tar.xz |
testing/py3-enchant: rename from py-enchant
Diffstat (limited to 'testing/py3-enchant')
-rw-r--r-- | testing/py3-enchant/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/py3-enchant/APKBUILD b/testing/py3-enchant/APKBUILD new file mode 100644 index 0000000000..8cd8f4eb80 --- /dev/null +++ b/testing/py3-enchant/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-enchant +_pkgname=pyenchant +pkgver=2.0.0 +pkgrel=1 +pkgdesc="A spellchecking library for Python" +url="https://github.com/rfk/pyenchant" +arch="noarch" +license="LGPL-2.0-or-later" +depends="enchant" +depends_dev="" +makedepends="python2-dev python3-dev py-setuptools enchant-dev" +install="" +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 --quiet build + python3 setup.py --quiet build +} + +check() { + cd "$builddir" + python2 -c "import enchant" + python3 -c "import enchant" +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_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" +} + +sha512sums="c985714bc8ad69b6580fa1dd546243da5f3f92e8681d846ed265b086c486ae7ed33754fba303b450be4c0cb20e975a9a10efbeb700ea5213a11ed00612a93af0 pyenchant-2.0.0.tar.gz" |