[arch-commits] Commit in thefuck/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Tue Apr 21 06:39:26 UTC 2015


    Date: Tuesday, April 21, 2015 @ 08:39:26
  Author: fyan
Revision: 131785

upgpkg: thefuck 1.18-1

Modified:
  thefuck/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-04-21 06:18:01 UTC (rev 131784)
+++ PKGBUILD	2015-04-21 06:39:26 UTC (rev 131785)
@@ -2,7 +2,7 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=thefuck
-pkgver=1.17
+pkgver=1.18
 pkgrel=1
 pkgdesc="Magnificent app which corrects your previous console command"
 arch=('any')
@@ -9,24 +9,24 @@
 url="https://github.com/nvbn/thefuck"
 license=('MIT')
 depends=('python-setuptools' 'python-pathlib' 'python-psutil')
+makedepends=('git')
 checkdepends=('python-pytest' 'python-mock')
 install=thefuck.install
-source=("https://pypi.python.org/packages/source/t/thefuck/thefuck-$pkgver.tar.gz")
-sha256sums=('5964e461756991d0b2f3568a4264b819dff30f2070ec9f5969926863617f2140')
+source=("git+https://github.com/nvbn/thefuck.git#tag=$pkgver")
+sha256sums=('SKIP')
 
 build() {
-  cd "${srcdir}/thefuck-$pkgver"
+  cd thefuck
   python setup.py build
 }
 
 check() {
-  # Tests not included in released tarball
-  cd "${srcdir}/thefuck-$pkgver"
-  # py.test
+  cd thefuck
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test
 }
 
 package() {
-  cd thefuck-$pkgver
+  cd thefuck
   python3 setup.py install -O1 --prefix=/usr --root="$pkgdir/"
 
   install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"



More information about the arch-commits mailing list