summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorvcalv2024-07-24 22:46:22 +0000
committervcalv2024-07-24 22:46:22 +0000
commit349b4519a8499e4b394af7bc984477b092859998 (patch)
tree079f13626ec29ad3036ca539a8e9993e9e1e787d
downloadaur-349b4519a8499e4b394af7bc984477b092859998.tar.gz
initial commit
Version 0.6.1/
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD49
-rwxr-xr-xrun.sh5
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..715c0f3cf052
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = epub_to_audiobook
+ pkgdesc = command-line tool to convert EPUB ebooks into audiobooks
+ pkgver = 0.6.1
+ pkgrel = 1
+ url = https://github.com/p0n1/epub_to_audiobook
+ arch = any
+ license = MIT
+ depends = ffmpeg
+ depends = python-beautifulsoup4
+ depends = python-ebooklib
+ depends = python-mutagen
+ depends = python-requests
+ depends = python-socksio
+ depends = python-pydub
+ depends = python
+ optdepends = python-openai
+ optdepends = python-edge-tts
+ provides = epub_to_audiobook
+ conflicts = epub_to_audiobook-git
+ source = https://github.com/p0n1/epub_to_audiobook/archive/refs/tags/v0.6.1.tar.gz
+ source = run.sh
+ sha512sums = a8313f564c00134e2b843c1e192e42135cf83514bb5d20914cf482aad1cc1b45861cc055804548a3508ac465ad2c6efefeef6451784131acd642da317dc55509
+ sha512sums = fb715e3fdc5c18d8c72d9493b345f1b1562528fb745767b9dcaf01bcebb1e5d4edde93b4da30c0078db3b57e859b40b67309763736545f9c0b0307fe778b8cba
+
+pkgname = epub_to_audiobook
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..f4f14cae1369
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: VCalV
+
+_gituser=p0n1
+pkgname=epub_to_audiobook
+pkgdesc="command-line tool to convert EPUB ebooks into audiobooks"
+pkgver=0.6.1
+pkgrel=1
+#epoch=1
+arch=("any")
+url="https://github.com/$_gituser/$pkgname"
+license=("MIT")
+makedepends=()
+depends=(
+ ffmpeg
+ python-beautifulsoup4
+ python-ebooklib
+ python-mutagen
+ python-requests
+ python-socksio
+ python-pydub
+ python
+)
+optdepends=(
+ python-openai
+ python-edge-tts
+)
+conflicts=("$pkgname-git")
+provides=("$pkgname")
+
+source=(
+ "https://github.com/$_gituser/$pkgname/archive/refs/tags/v$pkgver.tar.gz"
+ run.sh
+)
+sha512sums=(
+ a8313f564c00134e2b843c1e192e42135cf83514bb5d20914cf482aad1cc1b45861cc055804548a3508ac465ad2c6efefeef6451784131acd642da317dc55509
+ fb715e3fdc5c18d8c72d9493b345f1b1562528fb745767b9dcaf01bcebb1e5d4edde93b4da30c0078db3b57e859b40b67309763736545f9c0b0307fe778b8cba
+)
+
+package() {
+ install -Dm755 run.sh "$pkgdir/usr/bin/$pkgname"
+ cd "$pkgname-$pkgver"
+ local _dest="$pkgdir/opt/$pkgname/"
+ install -d "$_dest"
+ install main.py "$_dest"
+ install -Dm444 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm444 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
+ cp -r audiobook_generator "$_dest"
+ find "$_dest" -type d -exec chmod 755 {} \;
+}
diff --git a/run.sh b/run.sh
new file mode 100755
index 000000000000..299ba940dca3
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cd /opt/epub_to_audiobook
+
+exec python main.py $@