mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
bookworm: patch for python3 compat
This commit is contained in:
parent
78c33db053
commit
6f4bb56f8d
2 changed files with 29 additions and 4 deletions
15
srcpkgs/bookworm/patches/py3-scriptname.patch
Normal file
15
srcpkgs/bookworm/patches/py3-scriptname.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
fix script name for larger patch in distfiles, as there were some changes between
|
||||||
|
then and now that prevent the patch from applying
|
||||||
|
|
||||||
|
--- a/src/constants.vala.in
|
||||||
|
+++ b/src/constants.vala.in
|
||||||
|
@@ -167,8 +167,7 @@
|
||||||
|
public const string HTML_SCRIPT_RESOURCE_LOCATION = "resource:///" +
|
||||||
|
RESOURCE_PREFIX + BOOKWORM_HTML_SCRIPT;
|
||||||
|
|
||||||
|
- public const string MOBIUNPACK_SCRIPT_LOCATION = INSTALL_MOBILIB_DIR +
|
||||||
|
- "/mobi_unpack.py";
|
||||||
|
+ public const string MOBIUNPACK_SCRIPT_LOCATION = INSTALL_MOBILIB_DIR + "/kindleunpack.py";
|
||||||
|
|
||||||
|
//Set resource paths for images and icons
|
||||||
|
public const string PREV_PAGE_ICON_IMAGE_LOCATION = RESOURCE_PREFIX+"16-bookworm-go-previous.svg";
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'bookworm'
|
# Template file for 'bookworm'
|
||||||
pkgname=bookworm
|
pkgname=bookworm
|
||||||
version=1.1.2
|
version=1.1.2
|
||||||
revision=5
|
revision=6
|
||||||
build_style=meson
|
build_style=meson
|
||||||
hostmakedepends="pkg-config glib-devel gettext vala"
|
hostmakedepends="pkg-config glib-devel gettext vala"
|
||||||
makedepends="gtk+3-devel libgee08-devel granite-devel
|
makedepends="gtk+3-devel libgee08-devel granite-devel
|
||||||
|
@ -12,9 +12,19 @@ short_desc="Simple, focused eBook reader"
|
||||||
maintainer="Giuseppe Fierro <gspe@ae-design.ws>"
|
maintainer="Giuseppe Fierro <gspe@ae-design.ws>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
homepage="https://babluboy.github.io/bookworm"
|
homepage="https://babluboy.github.io/bookworm"
|
||||||
distfiles="https://github.com/babluboy/${pkgname}/archive/${version}.tar.gz"
|
distfiles="https://github.com/babluboy/bookworm/archive/${version}.tar.gz
|
||||||
checksum=6d27e55697debfa08f7cc15805413b74c94c55111cdf2d333b306228eccad824
|
https://github.com/babluboy/bookworm/commit/c7c3643760caea4bd26b1d56ed033a52f6e34124.patch>python3.patch"
|
||||||
python_version=2 # Should be set to python3 when updated to version > 1.1.2
|
checksum="6d27e55697debfa08f7cc15805413b74c94c55111cdf2d333b306228eccad824
|
||||||
|
ac3981fc515380a8a6d34707ca404a9b8ce16174a51520f1e9f41ee54b044e4b"
|
||||||
|
skip_extraction="python3.patch"
|
||||||
|
python_version=3
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
# remove the binary pyc files and file that needs to be patched separately
|
||||||
|
# also apply https://github.com/babluboy/bookworm/commit/5719d4367c2bded1c3660238465857d5d6f7f8fc
|
||||||
|
patch -Np1 < <(sed 's,#! /usr/bin/python,#!usr/bin/env python,; /^diff --git .*\.pyc$/,/^diff --git/d; /^--- .*constants.vala.in$/q' \
|
||||||
|
"${XBPS_SRCDISTDIR}/${pkgname}-${version}/python3.patch")
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
ln -s com.github.babluboy.bookworm ${DESTDIR}/usr/bin/bookworm
|
ln -s com.github.babluboy.bookworm ${DESTDIR}/usr/bin/bookworm
|
||||||
|
|
Loading…
Add table
Reference in a new issue