summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Fanninger2016-07-22 09:04:53 +0200
committerThomas Fanninger2016-07-22 09:04:53 +0200
commit79ba5d1d8c17343e2927bbfc6060e93fe4e1cc0c (patch)
tree7031089a8ab60aea85e477aadcce05d5e90f21f0
parentb9195589bb9d6adecc6294e351e4319c32a0885c (diff)
downloadaur-python-e4u.tar.gz
Add python and python2 version
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD38
2 files changed, 41 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 615ad818b9c..1a02eee2815 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,27 @@
# Generated by mksrcinfo v8
-# Thu Jul 21 19:13:05 UTC 2016
+# Fri Jul 22 07:04:26 UTC 2016
pkgbase = python-e4u
pkgdesc = Bundle Library of emoji4unicode at Google
pkgver = 0.1rc4
- pkgrel = 1
+ pkgrel = 2
epoch = 1
url = https://github.com/lambdalisue/e4u
arch = any
license = GPL
makedepends = python-setuptools
- depends = python
- provides = python-e4u
+ makedepends = python2-setuptools
+ makedepends = python-beautifulsoup4
+ makedepends = python2-beautifulsoup3
options = !strip
options = !emptydirs
- source = python-e4u::https://github.com/lambdalisue/e4u/archive/0.1rc4.tar.gz
+ source = python-e4u-0.1rc4.tar.gz::https://github.com/lambdalisue/e4u/archive/0.1rc4.tar.gz
sha512sums = SKIP
pkgname = python-e4u
+ depends = python
+ depends = python-beautifulsoup4
+
+pkgname = python2-e4u
+ depends = python2
+ depends = python2-beautifulsoup3
diff --git a/PKGBUILD b/PKGBUILD
index 71172ca01ee..23fa0a8b5f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,44 @@
# Contributor: Thomas Fanninger <thomas@fanninger.at>
# Maintainer: Thomas Fanninger <thomas@fanninger.at>
-pkgname=python-e4u
+pkgbase=python-e4u
+pkgname=('python-e4u' 'python2-e4u')
pkgver=0.1rc4
-pkgrel=1
+pkgrel=2
epoch=1
pkgdesc="Bundle Library of emoji4unicode at Google"
arch=('any')
url="https://github.com/lambdalisue/e4u"
license=('GPL')
-provides=('python-e4u')
-depends=('python')
-makedepends=('python-setuptools')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-beautifulsoup4' 'python2-beautifulsoup3')
options=('!strip' '!emptydirs')
-source=("${pkgname}::https://github.com/lambdalisue/e4u/archive/${pkgver}.tar.gz")
+source=("$pkgbase-$pkgver.tar.gz"::"https://github.com/lambdalisue/e4u/archive/${pkgver}.tar.gz")
sha512sums=(SKIP)
-package() {
+build(){
+ cd $srcdir
+ cp -r e4u-${pkgver} python2-e4u-${pkgver}
+}
+
+package_python-e4u() {
+ depends=('python' 'python-beautifulsoup4')
+
cd "${srcdir}/e4u-${pkgver}"
-
- python setup.py install --root="$pkgdir/"
+ python3 setup.py install --root=$pkgdir --optimize=1
+}
+
+package_python2-e4u() {
+ depends=('python2' 'python2-beautifulsoup3')
+
+ cd "${srcdir}/python2-e4u-${pkgver}"
+ python2 setup.py install --root=$pkgdir --optimize=1
}
+
+check(){
+ cd ${srcdir}/e4u-${pkgver}
+ #python3 setup.py test
+
+ cd ${srcdir}/python2-e4u-${pkgver}
+ python2 setup.py test
+} \ No newline at end of file