summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPeter Mattern2017-01-30 23:48:53 +0100
committerPeter Mattern2017-01-30 23:48:53 +0100
commit98cf8c115bdee6a04274da23b76e6505633de7cb (patch)
tree8107cbb96fe7c8122e5a7334a59306543b9aed35 /PKGBUILD
downloadaur-python-pyuca.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9a26d224c99
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Peter Mattern <pmattern at arcor dot de>
+
+pkgbase=python-pyuca
+pkgname=($pkgbase 'python2-pyuca')
+pkgver=1.1.2
+pkgrel=1
+pkgdesc='Python implementation of the Unicode Collation Algorithm (UCA)'
+arch=('any')
+url='https://github.com/jtauber/pyuca'
+license=('MIT' 'custom')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jtauber/pyuca/archive/v$pkgver.tar.gz")
+sha256sums=('6b831bb920ad4936e7a0d0e506374fd20b8b3ffc4119c59d9df0d60e8e6dbcc6')
+
+prepare() {
+ cp -r pyuca-$pkgver pyuca-$pkgver-python2
+}
+
+build() {
+
+ cd $srcdir/pyuca-$pkgver
+ python setup.py build
+
+ cd $srcdir/pyuca-$pkgver-python2
+ python2 setup.py build
+
+}
+
+package_python-pyuca() {
+
+ cd pyuca-$pkgver
+ python setup.py install --root $pkgdir --optimize=1
+
+ install -Dm644 $srcdir/pyuca-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ echo '' >> $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ cat $srcdir/pyuca-$pkgver/LICENSE-allkeys >> $pkgdir/usr/share/licenses/$pkgname/LICENSE
+
+}
+
+package_python2-pyuca() {
+
+ cd pyuca-$pkgver-python2
+ python2 setup.py install --root $pkgdir --optimize=1
+
+ install -Dm644 $srcdir/pyuca-$pkgver-python2/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ echo '' >> $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ cat $srcdir/pyuca-$pkgver-python2/LICENSE-allkeys >> $pkgdir/usr/share/licenses/$pkgname/LICENSE
+
+}