[arch-commits] Commit in python-jellyfish/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Thu Jun 28 13:00:35 UTC 2018
Date: Thursday, June 28, 2018 @ 13:00:35
Author: alucryd
Revision: 346709
upgpkg: python-jellyfish 0.6.1-1
Modified:
python-jellyfish/trunk/PKGBUILD
----------+
PKGBUILD | 52 ++++++++++++----------------------------------------
1 file changed, 12 insertions(+), 40 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-06-28 13:00:25 UTC (rev 346708)
+++ PKGBUILD 2018-06-28 13:00:35 UTC (rev 346709)
@@ -2,57 +2,29 @@
# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
# Maintainer: Jelle van der Waa <jelle at archlinux.org>
-pkgbase=python-jellyfish
-pkgname=('python-jellyfish' 'python2-jellyfish')
-pkgver=0.6.0
+pkgname=python-jellyfish
+pkgver=0.6.1
pkgrel=1
pkgdesc='A python library for doing approximate and phonetic matching of strings'
arch=('x86_64')
url='https://github.com/jamesturk/jellyfish'
license=('BSD')
-depends=('glibc')
-makedepends=('git' 'python-setuptools' 'python2-setuptools')
-_commit='a319d6ae04134f3c2bcd383012afab5645fba503'
-source=("python-jellyfish-${pkgver}.tar.gz::https://github.com/jamesturk/jellyfish/archive/${pkgver}.tar.gz"
- "git+https://github.com/jamesturk/cjellyfish.git#commit=${_commit}")
-sha256sums=('3432bec1cddc3d69c993968eb034f350314e3a9e0bbfadfa4ecde0ab8748856c'
- 'SKIP')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://pypi.python.org/packages/source/j/jellyfish/jellyfish-0.6.1.tar.gz")
+sha256sums=('5104e45a2b804b48a46a92a5e6d6e86830fe60ae83b1da32c867402c8f4c2094')
-prepare() {
- pushd jellyfish-${pkgver}
- rm -rf cjellyfish
- ln -s ../cjellyfish .
- popd
+build() {
+ cd jellyfish-${pkgver}
- mv {,python-}jellyfish-${pkgver}
- cp -r python{,2}-jellyfish-${pkgver}
+ python setup.py build
}
-build() {
- for py in python{,2}; do
- pushd ${py}-jellyfish-${pkgver}
- ${py} setup.py build
- popd
- done
-}
+package() {
+ cd jellyfish-${pkgver}
-package_python-jellyfish() {
- depends+=('python')
-
- cd python-jellyfish-${pkgver}
-
- python setup.py install --root="${pkgdir}" --optimize='1'
-
+ python setup.py install --root="${pkgdir}" --optimize='1' --skip-build
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-jellyfish/
}
-package_python2-jellyfish() {
- depends+=('python2')
-
- cd python2-jellyfish-${pkgver}
-
- python2 setup.py install --root="${pkgdir}" --optimize='1'
-
- install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python2-jellyfish/
-}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list