pelican: Update to 4.6.0
Remove install files, no longer needed. force utf-8 on install to handle non-ascii filenames update to fix build with newer sphinx
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
_realname=pelican
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=4.2.0
|
||||
pkgrel=2
|
||||
pkgver=4.6.0
|
||||
pkgrel=1
|
||||
pkgdesc='A tool to generate a static blog, with restructured text (or markdown) input files (mingw-w64)'
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
|
||||
@@ -39,8 +39,7 @@ optdepends=("${MINGW_PACKAGE_PREFIX}-python-markdown: Markdown support"
|
||||
#"${MINGW_PACKAGE_PREFIX}-python-mdx-video: easier embedding of youtube videos in markdown"
|
||||
)
|
||||
source=("pelican-${pkgver}.tar.gz"::"https://github.com/getpelican/pelican/archive/${pkgver}.tar.gz")
|
||||
install=${_realname}-${CARCH}.install
|
||||
sha256sums=('4b0d4c9439217b49ace89f4f8b52c90e13fa283a786d7b12e2020a11f32f9a33')
|
||||
sha256sums=('10ce79afba58ba70accbfe827f114e69d60ba4ec5088b628c15c6a9be1220b8e')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"
|
||||
@@ -67,13 +66,14 @@ check() {
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/python-build-${CARCH}"
|
||||
PYTHONUTF8=1 \
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1 --skip-build
|
||||
# fix python command in files
|
||||
local PREFIX_WIN=$(cygpath -wm ${MINGW_PREFIX})
|
||||
for _ff in "${pkgdir}${MINGW_PREFIX}/bin/*.py"; do
|
||||
sed -e "s|${PREFIX_WIN}|${MINGW_PREFIX}|g" -i ${_ff}
|
||||
|
||||
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*-script.py; do
|
||||
sed -e '1 { s/^#!.*$// }' -i ${_f}
|
||||
done
|
||||
|
||||
# documentation
|
||||
local _docdir="${srcdir}/python-build-${CARCH}/docs/_build"
|
||||
mkdir -p "${pkgdir}${MINGW_PREFIX}/share/man/man1"
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
post_install() {
|
||||
cd mingw32
|
||||
local _prefix=$(pwd -W)
|
||||
cd -
|
||||
local _it
|
||||
for _it in pelican pelican-import pelican-quickstart pelican-themes; do
|
||||
sed -e "s|/mingw32|${_prefix}|g" \
|
||||
-i ${_prefix}/bin/${_it}-script.py
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
post_install() {
|
||||
cd mingw64
|
||||
local _prefix=$(pwd -W)
|
||||
cd -
|
||||
local _it
|
||||
for _it in pelican pelican-import pelican-quickstart pelican-themes; do
|
||||
sed -e "s|/mingw64|${_prefix}|g" \
|
||||
-i ${_prefix}/bin/${_it}-script.py
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
Reference in New Issue
Block a user