[arch-commits] Commit in python-unidecode/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 25 15:25:42 UTC 2019


    Date: Friday, October 25, 2019 @ 15:25:42
  Author: felixonmars
Revision: 519021

archrelease: copy trunk to community-staging-any

Added:
  python-unidecode/repos/community-staging-any/
  python-unidecode/repos/community-staging-any/PKGBUILD
    (from rev 519020, python-unidecode/trunk/PKGBUILD)

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Copied: python-unidecode/repos/community-staging-any/PKGBUILD (from rev 519020, python-unidecode/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:25:42 UTC (rev 519021)
@@ -0,0 +1,53 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Kwpolska <kwpolska at kwpolska.tk>
+
+pkgbase=python-unidecode
+pkgname=(
+  python-unidecode
+  python2-unidecode
+)
+pkgver=1.1.1
+pkgrel=2
+pkgdesc='ASCII transliterations of Unicode text'
+arch=(any)
+url=https://github.com/avian2/unidecode
+license=(GPL)
+makedepends=(
+  git
+  python-setuptools
+  python2-setuptools
+)
+source=(git+https://github.com/avian2/unidecode.git#tag=unidecode-${pkgver})
+sha256sums=(SKIP)
+
+prepare() {
+  cp -r {,python-}unidecode
+   mv {,python2-}unidecode
+}
+
+build() {
+  for py in python{,2}; do
+    pushd ${py}-unidecode
+    ${py} setup.py build
+    popd
+  done
+}
+
+package_python-unidecode() {
+  depends=(python)
+
+  cd python-unidecode
+
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+package_python2-unidecode() {
+  depends=(python2)
+
+  cd python2-unidecode
+
+  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  mv "${pkgdir}"/usr/bin/unidecode{,2}
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list