Package Details: gitless 0.9.17-2

Git Clone URL: https://aur.archlinux.org/gitless.git (read-only, click to copy)
Package Base: gitless
Description: A scientifically proven easier-to-use git interface
Upstream URL: https://github.com/goldstar611/gitless
Licenses: MIT
Submitter: epitron
Maintainer: sir_lucjan
Last Packager: sir_lucjan
Votes: 10
Popularity: 0.000014
First Submitted: 2016-10-01 08:52 (UTC)
Last Updated: 2022-03-29 10:04 (UTC)

Latest Comments

sir_lucjan commented on 2022-03-29 10:43 (UTC)

Done.

alerque commented on 2022-03-29 09:41 (UTC)

Thanks for adopting and updating this. There are still a number of outstanding packaging issues though. Please find below a patch you can apply with git am < file.patch that covers issues including:

  • Save source to unique name that won't cause srcdir cache conflicts
  • Quote variable expansions that may include spaces such as $pkgdir
  • Drop obsolete direct calls to setup.py in favor of PEP517 compatible shim (see new Arch Python package guidelines)
  • Move non-runtime dependencies to makedepends
  • Remove unused patching cruft
  • Drop redundant version lock (min supported Arch version is 1.4 anyway)
From 5846c49e8d1053e58e9eb32f1002f718e3d37965 Mon Sep 17 00:00:00 2001
From: Caleb Maclennan <caleb@alerque.com>
Date: Tue, 29 Mar 2022 12:30:38 +0300
Subject: [PATCH] Overhaul build based on current Arch Python package
 guidelines

Signed-off-by: Caleb Maclennan <caleb@alerque.com>
---
 PKGBUILD | 40 ++++++++++++++--------------------------
 1 file changed, 14 insertions(+), 26 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index b29921f..417c5f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,39 +1,27 @@
 # Maintainer: Piotr Gorski <lucjan.lucjanov@gmail.com>
+# Contributor: Caleb Maclennan <caleb@alerque.com>
 # Contributor: epitron <chris@ill-logic.com>

 pkgname=gitless
 pkgver=0.9.17
-pkgrel=1
-pkgdesc="A scientifically proven easier-to-use git interface"
-arch=("any")
+pkgrel=2
+pkgdesc='A scientifically proven easier-to-use git interface'
+arch=('any')
 url="https://github.com/goldstar611/gitless"
-license=("MIT")
-depends=('python' 'git' 'python-pygit2>=1.4.0' 'python-setuptools' 'python-argcomplete')
-source=("https://github.com/goldstar611/gitless/archive/$pkgver.tar.gz")
+license=('MIT')
+depends=('python' 'git' 'python-pygit2' 'python-argcomplete')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+_archive="$pkgname-$pkgver"
+source=("https://github.com/goldstar611/gitless/archive/$pkgver/$_archive.tar.gz")
 sha256sums=('c084b561fe09543b816ca2bba25e02e2df78a4444c9cbb9acec59a7f073c2910')

-prepare() {
-  cd $pkgname-$pkgver
-  
-  local src
-  for src in "${source[@]}"; do
-    src="${src%%::*}"
-    src="${src##*/}"
-    [[ $src = *.patch ]] || continue
-    echo "Applying patch $src..."
-    patch -Np1 < "../$src"
-  done
-}
-
 build() {
-  cd $pkgname-$pkgver
-  python setup.py build
+   cd "$_archive"
+   python -m build -wn
 }

 package() {
-  cd $pkgname-$pkgver
-  python setup.py install --root=${pkgdir} --optimize=1 --skip-build
-  
-  # copy custom license:
-  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+   cd "$_archive"
+   python -m installer -d "$pkgdir" dist/*.whl
+   install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.md
 }
-- 
2.35.1

skogshjort commented on 2018-07-18 19:54 (UTC) (edited on 2018-07-18 19:58 (UTC) by skogshjort)

This package requires extra/python-setuptools as a dependency. Fails on my system (x86_64, 4.16.13-2-ARCH).

Hugs

epitron commented on 2016-10-12 12:37 (UTC)

Sorry for the delay! Fixed!

foxcub commented on 2016-10-03 20:31 (UTC)

`patch -p1 < ../../versionless-deps.patch` fails on my system. I think it should be `patch -p1 ${srcdir}/versionless-deps.patch`