Date: Tuesday, April 11, 2023 @ 18:42:05
  Author: arojas
Revision: 1444737

upgpkg: pelican 4.8.0-2: Python 3.11 rebuild

Modified:
  pelican/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-11 18:29:53 UTC (rev 1444736)
+++ PKGBUILD    2023-04-11 18:42:05 UTC (rev 1444737)
@@ -4,7 +4,7 @@
 
 pkgname=pelican
 pkgver=4.8.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A tool to generate a static blog, with restructured text (or 
markdown) input files."
 arch=('any')
 url="https://blog.getpelican.com/";
@@ -28,9 +28,19 @@
             'python-typogrify: typographical enhancements'
             'pandoc: for pelican-import auto convert'
             'python-mdx-video: easier embedding of youtube videos in markdown')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/getpelican/pelican/archive/$pkgver.tar.gz";)
-sha512sums=('2e94eb88a836bcb430026463c0e7e906b7f065507e0d873b6e0fc980e271e6a8f2e62b22af4b61c963d90ef61d57787de20656fe7497b0ae14e93eff2d364f3b')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/getpelican/pelican/archive/$pkgver.tar.gz";
+         https://github.com/getpelican/pelican/commit/33aca76d.patch
+         https://github.com/getpelican/pelican/commit/3937028c.patch)
+sha512sums=('2e94eb88a836bcb430026463c0e7e906b7f065507e0d873b6e0fc980e271e6a8f2e62b22af4b61c963d90ef61d57787de20656fe7497b0ae14e93eff2d364f3b'
+            
'5362679c506a517fc63b37a5e32a4e04659cf9ecb0642512ab9d57d08b336c280f059409561b5abb4134cb7b84b12b194e4124f620ca8289ca856f956950c40e'
+            
'3dfc8ce541ee0547ed771cba2c48b08a8cd0b683b4a882f94dea725bb61c056a04b1f837ba622c18121f44bc11bd86ee14da68491e85109e73ba4520b176beaa')
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../33aca76d.patch # Fix build with sphinx 6
+  patch -p1 -i ../3937028c.patch # Fix tests with python 3.11
+}
+
 build() {
     # sphinx tried to import pelican, make it happy
     cd "$srcdir/$pkgname-$pkgver/docs"

Reply via email to