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

Levente Polyak anthraxx at archlinux.org
Sat Jun 12 00:23:13 UTC 2021


    Date: Saturday, June 12, 2021 @ 00:23:13
  Author: anthraxx
Revision: 963011

upgpkg: vit 2.1.0-1

Modified:
  vit/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++++++-----------
 1 file changed, 20 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-12 00:23:05 UTC (rev 963010)
+++ PKGBUILD	2021-06-12 00:23:13 UTC (rev 963011)
@@ -2,26 +2,35 @@
 # Contributor: Ivan Sichmann Freitas <ivansichfreitas at gmail.com>
 
 pkgname=vit
-pkgver=1.3
-pkgrel=2
+pkgver=2.1.0
+pkgrel=1
 pkgdesc='Terminal interface for Taskwarrior with Vim key bindings and colorization'
-url='https://github.com/scottkosty/vit'
+url='https://github.com/vit-project/vit'
 arch=('any')
-license=('GPL3')
-depends=('perl-curses' 'perl-try-tiny' 'perl-text-charwidth' 'task')
-source=(https://github.com/scottkosty/vit/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('a53021cfbcc1b1a492f630650e7e798d2361beb312d33ee15840e8209c8414c9')
-sha512sums=('45ae4a1d08560d534a02a046d2fcf55c5401f9aaab0abcfbd13070fee28854268ba327018aea40317a184b9e28b074973f5d3e4169a479227e94b8401f066527')
+license=('MIT')
+depends=('task' 'python' 'python-pytz' 'python-tzlocal' 'python-urwid' 'python-tasklib')
+makedepends=('python-setuptools')
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('56676651164fb71878a0c1e4bb369cfa336d46e6fd0de7e6167b57fca7eaf662')
+b2sums=('2d4242399c399808783a670b853b31586471bd12fad2f9109d760569239d1ebcc5ddead4eb6803300d803fcb34b73c3dd42c091d7a619357f26a7bb10801702c')
 
 build() {
   cd ${pkgname}-${pkgver}
-  ./configure --prefix=/usr
-  make
+  python setup.py build
 }
 
+check() {
+  cd ${pkgname}-${pkgver}
+  # TODO: requires python-terminal
+  # ./run-tests.sh
+}
+
 package() {
   cd ${pkgname}-${pkgver}
-  make DESTDIR="${pkgdir}" install
+  python setup.py install --root="${pkgdir}" -O1 --skip-build
+  install -Dm 644 scripts/bash/vit.bash_completion "${pkgdir}/usr/share/bash-completion/completions/vit"
+  install -Dm 644 *.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list