Leonidas Spyropoulos pushed to branch main at Arch Linux / Packaging / Packages 
/ alot


Commits:
055ecb49 by Leonidas Spyropoulos at 2024-08-27T20:40:03+01:00
upgpkg: 0.11-1: new upstream release

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,16 +1,18 @@
 pkgbase = alot
        pkgdesc = Terminal-based MUA for the notmuch mail system
-       pkgver = 0.10
-       pkgrel = 7
+       pkgver = 0.11
+       pkgrel = 1
        url = https://github.com/pazz/alot
        arch = any
-       license = GPL3
+       license = GPL-3.0-or-later
        checkdepends = procps-ng
        checkdepends = python-pytest
+       makedepends = git
        makedepends = python-build
        makedepends = python-installer
        makedepends = python-wheel
        makedepends = python-sphinx
+       makedepends = python-setuptools-scm
        depends = desktop-file-utils
        depends = notmuch
        depends = python-configobj
@@ -20,12 +22,8 @@ pkgbase = alot
        depends = python-urwid
        depends = python-urwidtrees
        depends = python-cffi
-       source = https://github.com/pazz/alot/archive/0.10/alot-0.10.tar.gz
-       source = 
alot-0.10.tar.gz.asc::https://github.com/pazz/alot/releases/download/0.10/0.10.tar.gz.asc
-       source = alot-0.10-skip-broken-test.patch
+       source = git+https://github.com/pazz/alot.git#tag=0.11
        validpgpkeys = B7838D65FEE80DED1DCA494D94340367D7D6C5AA
-       sha512sums = 
b07c77f3a21c9670fb14a760d036ce0e14678dd6ae75585cc929f97db5126a7dbb7f411244d317fea2913692afca6ff9f439f9dbbf047acffb8fcea2ebef7056
-       sha512sums = SKIP
-       sha512sums = 
a30149bb10fa594ec9f57407290157498a7b865909449e92317840907606ffb74a072bc997f5960b077bc42924c077a1a0d52a51069b0e9323e6bdec2abb3b98
+       sha512sums = 
8749bb7a1d3380e18158bf7391091d1371d8fecd9b78c7c005c6413cb4300b4aa16aacb31bdc83138db10a784356d2af9d0e313282f0beeb3eb6be045fbaf8fb
 
 pkgname = alot


=====================================
PKGBUILD
=====================================
@@ -5,44 +5,40 @@
 # Contributor: Ian Denhardt <[email protected]>
 
 pkgname=alot
-pkgver=0.10
-pkgrel=7
+pkgver=0.11
+pkgrel=1
 pkgdesc='Terminal-based MUA for the notmuch mail system'
 arch=(any)
 url=https://github.com/pazz/alot
-license=('GPL3')
+license=('GPL-3.0-or-later')
 depends=('desktop-file-utils' 'notmuch' 'python-configobj' 'python-gpgme'
          'python-magic' 'python-twisted' 'python-urwid'
          'python-urwidtrees' 'python-cffi')
-makedepends=('python-build' 'python-installer' 'python-wheel' 'python-sphinx')
+makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 
'python-sphinx' 'python-setuptools-scm')
 checkdepends=('procps-ng' 'python-pytest')
-source=("$url/archive/$pkgver/alot-$pkgver.tar.gz"
-        
"alot-$pkgver.tar.gz.asc::$url/releases/download/$pkgver/$pkgver.tar.gz.asc"
-        "$pkgname-$pkgver-skip-broken-test.patch")
-sha512sums=('b07c77f3a21c9670fb14a760d036ce0e14678dd6ae75585cc929f97db5126a7dbb7f411244d317fea2913692afca6ff9f439f9dbbf047acffb8fcea2ebef7056'
-            'SKIP'
-            
'a30149bb10fa594ec9f57407290157498a7b865909449e92317840907606ffb74a072bc997f5960b077bc42924c077a1a0d52a51069b0e9323e6bdec2abb3b98')
+source=("git+https://github.com/pazz/alot.git#tag=${pkgver}";)
+sha512sums=('8749bb7a1d3380e18158bf7391091d1371d8fecd9b78c7c005c6413cb4300b4aa16aacb31bdc83138db10a784356d2af9d0e313282f0beeb3eb6be045fbaf8fb')
 validpgpkeys=('B7838D65FEE80DED1DCA494D94340367D7D6C5AA') # Patrick Totzke
 
-prepare() {
-  cd alot-$pkgver
-
-  patch -Np1 < "../$pkgname-$pkgver-skip-broken-test.patch"
-}
-
 build() {
-  cd alot-$pkgver
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  cd alot
   python -m build --wheel --no-isolation
-  make -C docs man
+  
+  # install to temporary location, as importlib is used
+  python -m installer --destdir=doc_dir dist/*.whl
+  PYTHONPATH="$PWD/doc_dir/$site_packages:$PYTHONPATH" make -C docs man
+  rm -rf doc_dir
 }
 
 check() {
-  cd alot-$pkgver
+  cd alot
+  export PYTHONPATH=$(find $(pwd) -name "*.so" | head -n 1 | xargs 
dirname):src/alot:src
   pytest
 }
 
 package() {
-  cd alot-$pkgver
+  cd alot
   python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man/alot.1
   install -Dm644 -t "$pkgdir"/usr/share/applications extra/alot*.desktop



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/alot/-/commit/055ecb494c178010a6918a841c9d7b569a1f9ec0

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/alot/-/commit/055ecb494c178010a6918a841c9d7b569a1f9ec0
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to