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

Felix Yan felixonmars at archlinux.org
Mon Nov 4 09:17:12 UTC 2019


    Date: Monday, November 4, 2019 @ 09:17:11
  Author: felixonmars
Revision: 523858

archrelease: copy trunk to community-staging-any

Added:
  thefuck/repos/community-staging-any/
  thefuck/repos/community-staging-any/PKGBUILD
    (from rev 523857, thefuck/trunk/PKGBUILD)

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

Copied: thefuck/repos/community-staging-any/PKGBUILD (from rev 523857, thefuck/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 09:17:11 UTC (rev 523858)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=thefuck
+pkgver=3.29
+pkgrel=2
+pkgdesc="Magnificent app which corrects your previous console command"
+arch=('any')
+url="https://github.com/nvbn/thefuck"
+license=('MIT')
+depends=('python-setuptools' 'python-psutil' 'python-six' 'python-colorama' 'python-decorator'
+         'python-pyte')
+makedepends=('python-pip')
+checkdepends=('python-pytest-mock' 'python-mock' 'python-pexpect')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nvbn/thefuck/archive/$pkgver.tar.gz")
+sha512sums=('93d11f8180d75328f7eb48218078f1260373961f50f8cf0a991e425a2348af006d93a3eba9bb4c557f8f8bc216c3378634e8738dc8b47e7fee0228e90f1100c8')
+
+build() {
+  cd thefuck-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd thefuck-$pkgver
+
+  # Hack distribution test by installing it and set PYTHONPATH afterwards
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+
+  # Hack $HOME as it's / in the chroot and not writable
+  cp tests/test_conf.py "$srcdir/test_conf.py.bak"
+  sed -i "s|data = {}|data = {'HOME': '$srcdir'}|" tests/test_conf.py
+  LC_CTYPE=en_US.utf8 PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test tests
+  mv "$srcdir/test_conf.py.bak" tests/test_conf.py
+}
+
+package() {
+  cd thefuck-$pkgver
+  python setup.py install -O1 --prefix=/usr --root="$pkgdir"
+
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list