Date: Tuesday, March 30, 2021 @ 11:31:51 Author: felixonmars Revision: 910450
archrelease: copy trunk to community-any Added: thefuck/repos/community-any/PKGBUILD (from rev 910449, thefuck/trunk/PKGBUILD) Deleted: thefuck/repos/community-any/PKGBUILD ----------+ PKGBUILD | 85 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 43 insertions(+), 42 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-03-30 11:31:37 UTC (rev 910449) +++ PKGBUILD 2021-03-30 11:31:51 UTC (rev 910450) @@ -1,42 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=thefuck -pkgver=3.30 -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' 'go') -source=("$pkgname-$pkgver.tar.gz::https://github.com/nvbn/thefuck/archive/$pkgver.tar.gz") -sha512sums=('99b270d0aa535673c09e7e932212af4ded5639fcf30ad0aeedc89a54e94c0a072a37883b1a1a56301efb82ea1c72cf53d4dacf2e83edcafcf4fbaa55ecd35f3a') - -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.9/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: Copied: thefuck/repos/community-any/PKGBUILD (from rev 910449, thefuck/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-03-30 11:31:51 UTC (rev 910450) @@ -0,0 +1,43 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=thefuck +pkgver=3.30 +pkgrel=3 +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' 'go') +source=("https://github.com/nvbn/thefuck/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('99b270d0aa535673c09e7e932212af4ded5639fcf30ad0aeedc89a54e94c0a072a37883b1a1a56301efb82ea1c72cf53d4dacf2e83edcafcf4fbaa55ecd35f3a') + +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.9/site-packages:$PYTHONPATH" py.test tests + mv "$srcdir/test_conf.py.bak" tests/test_conf.py +} + +package() { + cd thefuck-$pkgver + export PYTHONHASHSEED=0 + 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: