mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
office/epy: Added (terminal ebook reader)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
340785f088
commit
eda6425397
6 changed files with 265 additions and 0 deletions
8
office/epy/README
Normal file
8
office/epy/README
Normal file
|
@ -0,0 +1,8 @@
|
|||
epy (terminal ebook reader)
|
||||
|
||||
epy is an ebook viewer that runs in a terminal and displays most
|
||||
ebook formats, including epub, fb2, mobi, azw, and azw3. Since it's a
|
||||
textmode application, it doesn't display images.
|
||||
|
||||
After installation, run "epy --help" for usage information. Also,
|
||||
press the ? key while epy is running, to see the built-in help.
|
82
office/epy/epy.1
Normal file
82
office/epy/epy.1
Normal file
|
@ -0,0 +1,82 @@
|
|||
.\" Man page generated from reStructuredText.
|
||||
.
|
||||
.
|
||||
.nr rst2man-indent-level 0
|
||||
.
|
||||
.de1 rstReportMargin
|
||||
\\$1 \\n[an-margin]
|
||||
level \\n[rst2man-indent-level]
|
||||
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
-
|
||||
\\n[rst2man-indent0]
|
||||
\\n[rst2man-indent1]
|
||||
\\n[rst2man-indent2]
|
||||
..
|
||||
.de1 INDENT
|
||||
.\" .rstReportMargin pre:
|
||||
. RS \\$1
|
||||
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
||||
. nr rst2man-indent-level +1
|
||||
.\" .rstReportMargin post:
|
||||
..
|
||||
.de UNINDENT
|
||||
. RE
|
||||
.\" indent \\n[an-margin]
|
||||
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
.nr rst2man-indent-level -1
|
||||
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
||||
..
|
||||
.TH "EPY" 1 "2022-05-23" "2022.4.18" "SlackBuilds.org"
|
||||
.SH NAME
|
||||
epy \- terminal ebook reader
|
||||
.\" RST source for epy(1) man page. Convert with:
|
||||
.
|
||||
.\" rst2man.py epy.rst > epy.1
|
||||
.
|
||||
.\" rst2man.py comes from the SBo development/docutils package.
|
||||
.
|
||||
.SH SYNOPSIS
|
||||
.sp
|
||||
epy [\-h] [\-r] [\-d] [\-v] [PATH | # | PATTERN | URL]
|
||||
.SH DESCRIPTION
|
||||
.sp
|
||||
\fBepy\fP is an ebook reader that runs in a terminal. It supports
|
||||
\fBepub\fP, \fBfb2\fP, \fBmobi\fP, \fBazw\fP, and \fBazw3\fP formatted books,
|
||||
plus it\(aqs able to view HTML, given a URL. \fBepy\fP only displays text,
|
||||
not images.
|
||||
.SH OPTIONS
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-r\fP,\fB \-\-history
|
||||
Print reading history.
|
||||
.TP
|
||||
.B \-d\fP,\fB \-\-dump
|
||||
Dump the content of an ebook on standard output.
|
||||
.TP
|
||||
.B \-v\fP,\fB \-\-version
|
||||
Output version number.
|
||||
.TP
|
||||
.B \-h\fP,\fB \-\-help
|
||||
Output usage string.
|
||||
.UNINDENT
|
||||
.SH FILES
|
||||
.sp
|
||||
/usr/doc/epy\-2022.4.18/README.md is the complete documentation for \fBepy\fP\&.
|
||||
.sp
|
||||
~/.config/epy/ contains the config file, \fBconfiguration.json\fP, and the
|
||||
reading history database, \fBstates.db\fP\&.
|
||||
.SH COPYRIGHT
|
||||
.sp
|
||||
See the file /usr/doc/epy\-2022.4.18/LICENSE for license information.
|
||||
.SH AUTHORS
|
||||
.sp
|
||||
epy was written by Benawi Adha.
|
||||
.sp
|
||||
This man page written for the SlackBuilds.org project
|
||||
by B. Watson, and is licensed under the WTFPL.
|
||||
.SH SEE ALSO
|
||||
.sp
|
||||
The epy homepage: \fI\%http://www.epy.org/\fP
|
||||
.\" Generated by docutils manpage writer.
|
||||
.
|
75
office/epy/epy.SlackBuild
Normal file
75
office/epy/epy.SlackBuild
Normal file
|
@ -0,0 +1,75 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Slackware build script for epy
|
||||
|
||||
# Written by B. Watson (yalhcru@gmail.com)
|
||||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=epy
|
||||
VERSION=${VERSION:-2022.4.18}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
|
||||
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
|
||||
|
||||
python3 setup.py install --root=$PKG
|
||||
|
||||
# man page by SlackBuild author.
|
||||
mkdir -p $PKG/usr/man/man1
|
||||
gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
|
||||
|
||||
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mkdir -p $PKGDOC
|
||||
cp -a LICENSE README.md $PKGDOC
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
10
office/epy/epy.info
Normal file
10
office/epy/epy.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="epy"
|
||||
VERSION="2022.4.18"
|
||||
HOMEPAGE="https://github.com/wustho/epy"
|
||||
DOWNLOAD="https://github.com/wustho/epy/archive/v2022.4.18/epy-2022.4.18.tar.gz"
|
||||
MD5SUM="b8d4c5704b78c87584d98808b18c9b4b"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="yalhcru@gmail.com"
|
71
office/epy/epy.rst
Normal file
71
office/epy/epy.rst
Normal file
|
@ -0,0 +1,71 @@
|
|||
.. RST source for epy(1) man page. Convert with:
|
||||
.. rst2man.py epy.rst > epy.1
|
||||
.. rst2man.py comes from the SBo development/docutils package.
|
||||
|
||||
.. |version| replace:: 2022.4.18
|
||||
.. |date| date::
|
||||
|
||||
===
|
||||
epy
|
||||
===
|
||||
|
||||
---------------------
|
||||
terminal ebook reader
|
||||
---------------------
|
||||
|
||||
:Manual section: 1
|
||||
:Manual group: SlackBuilds.org
|
||||
:Date: |date|
|
||||
:Version: |version|
|
||||
|
||||
SYNOPSIS
|
||||
========
|
||||
|
||||
epy [-h] [-r] [-d] [-v] [PATH | # | PATTERN | URL]
|
||||
|
||||
DESCRIPTION
|
||||
===========
|
||||
|
||||
**epy** is an ebook reader that runs in a terminal. It supports
|
||||
**epub**, **fb2**, **mobi**, **azw**, and **azw3** formatted books,
|
||||
plus it's able to view HTML, given a URL. **epy** only displays text,
|
||||
not images.
|
||||
|
||||
OPTIONS
|
||||
=======
|
||||
|
||||
-r, --history
|
||||
Print reading history.
|
||||
|
||||
-d, --dump Dump the content of an ebook on standard output.
|
||||
|
||||
-v, --version Output version number.
|
||||
|
||||
-h, --help
|
||||
Output usage string.
|
||||
|
||||
FILES
|
||||
=====
|
||||
|
||||
/usr/doc/epy-|version|/README.md is the complete documentation for **epy**.
|
||||
|
||||
~/.config/epy/ contains the config file, **configuration.json**, and the
|
||||
reading history database, **states.db**.
|
||||
|
||||
COPYRIGHT
|
||||
=========
|
||||
|
||||
See the file /usr/doc/epy-|version|/LICENSE for license information.
|
||||
|
||||
AUTHORS
|
||||
=======
|
||||
|
||||
epy was written by Benawi Adha.
|
||||
|
||||
This man page written for the SlackBuilds.org project
|
||||
by B. Watson, and is licensed under the WTFPL.
|
||||
|
||||
SEE ALSO
|
||||
========
|
||||
|
||||
The epy homepage: http://www.epy.org/
|
19
office/epy/slack-desc
Normal file
19
office/epy/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
epy: epy (terminal ebook reader)
|
||||
epy:
|
||||
epy: epy is an ebook viewer that runs in a terminal and displays most
|
||||
epy: ebook formats, including epub, fb2, mobi, azw, and azw3.
|
||||
epy:
|
||||
epy:
|
||||
epy:
|
||||
epy:
|
||||
epy:
|
||||
epy:
|
||||
epy:
|
Loading…
Reference in a new issue