Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
desktop
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
6
Merge Requests
6
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chakra
Packages
desktop
Commits
bba17e0c
Commit
bba17e0c
authored
Sep 28, 2020
by
Jeff Huang
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calibre: update to 5.0.1 (but it requires python at 3.7.0...)
parent
e0e94046
Pipeline
#6967
skipped with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
21 deletions
+12
-21
calibre/PKGBUILD
calibre/PKGBUILD
+12
-21
No files found.
calibre/PKGBUILD
View file @
bba17e0c
pkgname
=
calibre
pkgver
=
4.0.0
pkgver
=
5.0.1
pkgrel
=
1
pkgdesc
=
"Ebook management application"
arch
=(
'x86_64'
)
...
...
@@ -7,16 +7,15 @@ url="https://calibre-ebook.com/"
license
=(
'GPL3'
)
_py_deps
=(
'apsw'
'beautifulsoup4'
'cssselect'
'css-parser'
'dateutil'
'dbus'
'dnspython'
'dukpy'
'html2text'
'html5-parser'
'lxml'
'markdown'
'mechanize'
'msgpack'
'netifaces'
'unrardll'
'pillow'
'psutil'
'pygments'
'pyqt5'
'regex'
'enum34'
)
'netifaces'
'unrardll'
'pillow'
'psutil'
'pygments'
'pyqt5'
'regex'
)
depends
=(
'chmlib'
'icu'
'jxrlib'
'libmtp'
'libusbx'
'libwmf'
'mathjax'
'mtdev'
'optipng'
'podofo'
"
${
_py_deps
[@]/#/python
2
-
}
"
'qt5-svg'
'qt5-webengine'
'udisks2'
)
'podofo'
"
${
_py_deps
[@]/#/python
3
-
}
"
'qt5-svg'
'qt5-webengine'
'udisks2'
)
makedepends
=(
'qt5-x11extras'
'sip'
'xdg-utils'
)
optdepends
=(
'ipython2: to use calibre-debug'
'poppler: required for converting pdf to html'
optdepends
=(
'poppler: required for converting pdf to html'
'kdialog: to use native dialog'
)
source
=(
"https://download.calibre-ebook.com/
${
pkgver
}
/calibre-
${
pkgver
}
.tar.xz"
"https://calibre-ebook.com/signatures/
${
pkgname
}
-
${
pkgver
}
.tar.xz.sig"
)
sha256sums
=(
'9
c012ac318aae8efc7a26ba1f5beef2e0e924407c8830e30167b229d8f6e1a9b
'
sha256sums
=(
'9
49fffb683708345daa84df24f73b01479043f08c67d0b13209d5977789f4802
'
'SKIP'
)
validpgpkeys
=(
'3CE1780F78DD88DF45194FD706BC317B515ACE7C'
)
# Kovid Goyal (New longer key) <kovid@kovidgoyal.net>
...
...
@@ -29,19 +28,11 @@ prepare(){
-e
"s/^Name=calibre/Name=Calibre/g"
\
-i
src/calibre/linux.py
# cherry-picked bits of python2-backports.functools_lru_cache
# needed for frozen builds + beautifulsoup4
# see https://github.com/kovidgoyal/calibre/commit/b177f0a1096b4fdabd8772dd9edc66662a69e683#commitcomment-33169700
rm
-r
src/backports
cd
resources
# Remove unneeded files
rm
${
pkgname
}
-portable
.
*
mozilla-ca-certs.pem
# tarball cache from calibre 4.x
rm
editor.js viewer.
{
js,html
}
# use system mathjax
rm
-r
mathjax
}
...
...
@@ -49,10 +40,10 @@ prepare(){
build
()
{
cd
"
${
pkgname
}
-
${
pkgver
}
"
LANG
=
'en_US.UTF-8'
python
2
setup.py build
LANG
=
'en_US.UTF-8'
python
2
setup.py gui
LANG
=
'en_US.UTF-8'
python
2
setup.py mathjax
--path-to-mathjax
/usr/share/mathjax
--system-mathjax
LANG
=
'en_US.UTF-8'
python
2
setup.py rapydscript
LANG
=
'en_US.UTF-8'
python
3
setup.py build
LANG
=
'en_US.UTF-8'
python
3
setup.py gui
LANG
=
'en_US.UTF-8'
python
3
setup.py mathjax
--path-to-mathjax
/usr/share/mathjax
--system-mathjax
LANG
=
'en_US.UTF-8'
python
3
setup.py rapydscript
}
package
()
{
...
...
@@ -61,7 +52,7 @@ package() {
# If this directory doesn't exist, zsh completion won't install.
install
-d
"
${
pkgdir
}
/usr/share/zsh/site-functions"
LANG
=
'en_US.UTF-8'
python
2
setup.py
install
\
LANG
=
'en_US.UTF-8'
python
3
setup.py
install
\
--staging-root
=
"
${
pkgdir
}
/usr"
\
--prefix
=
/usr
...
...
@@ -74,7 +65,7 @@ package() {
# This is kind of ugly but removes traces of the build root.
while
read
-rd
''
_file
;
do
_destdir
=
"
$(
dirname
"
${
_file
#
${
pkgdir
}}
"
)
"
python
2
-m
compileall
-d
"
${
_destdir
}
"
"
${
_file
}
"
python
2
-O
-m
compileall
-d
"
${
_destdir
}
"
"
${
_file
}
"
python
3
-m
compileall
-d
"
${
_destdir
}
"
"
${
_file
}
"
python
3
-O
-m
compileall
-d
"
${
_destdir
}
"
"
${
_file
}
"
done
< <
(
find
"
${
pkgdir
}
"
/usr/lib/
-name
'*.py'
-print0
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment