[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Thu Jan 4 02:32:57 UTC 2018
Date: Thursday, January 4, 2018 @ 02:32:56
Author: felixonmars
Revision: 278385
addpkg: python-cjkwrap 2.2-1
Added:
python-cjkwrap/
python-cjkwrap/repos/
python-cjkwrap/trunk/
python-cjkwrap/trunk/PKGBUILD
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Added: python-cjkwrap/trunk/PKGBUILD
===================================================================
--- python-cjkwrap/trunk/PKGBUILD (rev 0)
+++ python-cjkwrap/trunk/PKGBUILD 2018-01-04 02:32:56 UTC (rev 278385)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-cjkwrap
+pkgname=(python-cjkwrap python2-cjkwrap)
+pkgver=2.2
+pkgrel=1
+pkgdesc="A library for wrapping and filling CJK text."
+url="https://github.com/fgallaire/cjkwrap"
+license=('LGPL')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/C/CJKwrap/CJKwrap-$pkgver.tar.gz")
+sha512sums=('59e0139daadad4d0397f0684a0c1abd5803d133e90ff7ced0adb703be02b20e430bb96a6777227640e55aca6d1aaea796bfc79b5d5b3379953e38323003cbde0')
+
+prepare() {
+ cp -a CJKwrap-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/CJKwrap-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/CJKwrap-$pkgver-py2
+ python2 setup.py build
+}
+
+package_python-cjkwrap() {
+ depends=('python')
+
+ cd CJKwrap-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-cjkwrap() {
+ depends=('python2')
+
+ cd CJKwrap-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
Property changes on: python-cjkwrap/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list