From bba4bf3a7383388f3946e9cba45320597060444e Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 17 Oct 2023 02:36:30 -0300 Subject: [PATCH 1/8] Updates - version --- src/Aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Aur/PKGBUILD b/src/Aur/PKGBUILD index 083f375..4d6bf43 100644 --- a/src/Aur/PKGBUILD +++ b/src/Aur/PKGBUILD @@ -8,7 +8,7 @@ url="https://github.com/felipealfonsog/TermPDFViewer" license=('MIT') depends=('python-pip' 'python-pymupdf') source=("https://github.com/felipealfonsog/TermPDFViewer/archive/refs/tags/v.${pkgver}.tar.gz") -sha256sums=('2abb9938cbdf9b54e3dbdee77a0ea11d9aed50729ea5a9d61e5456166d268692') +sha256sums=('ff15c7a79a4b13eb067e28408e18c7333b609b7d76f2bb3039072df9125688ab') prepare() { tar xf "v.${pkgver}.tar.gz" -C "$srcdir" --strip-components=1 From 2cc93064b0034705d5d984cd689ce5539ac917a8 Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 17 Oct 2023 02:49:48 -0300 Subject: [PATCH 2/8] Updated aur file --- src/Aur/PKGBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Aur/PKGBUILD b/src/Aur/PKGBUILD index 4d6bf43..24b51c8 100644 --- a/src/Aur/PKGBUILD +++ b/src/Aur/PKGBUILD @@ -20,5 +20,6 @@ build() { } package() { install -Dm755 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/term-pdf-wrp "${pkgdir}/usr/bin/term-pdf" - install -Dm700 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/termpdf.py "${pkgdir}/$HOME/.config/termpdf.py" + install -d "${pkgdir}/$HOME/.termpdf" + install -Dm700 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/termpdf.py "${pkgdir}/$HOME/.termpdf/termpdf.py" } From 776f00057b63c652798b3e8179f2867aea022f5a Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 17 Oct 2023 02:56:46 -0300 Subject: [PATCH 3/8] Updates --- src/Aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Aur/PKGBUILD b/src/Aur/PKGBUILD index 24b51c8..e990f85 100644 --- a/src/Aur/PKGBUILD +++ b/src/Aur/PKGBUILD @@ -20,6 +20,6 @@ build() { } package() { install -Dm755 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/term-pdf-wrp "${pkgdir}/usr/bin/term-pdf" - install -d "${pkgdir}/$HOME/.termpdf" + install -d -m700 "${pkgdir}/$HOME/.termpdf" install -Dm700 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/termpdf.py "${pkgdir}/$HOME/.termpdf/termpdf.py" } From a80e89d78bc3c4b78c482660cf0211720b18ef28 Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 17 Oct 2023 03:11:53 -0300 Subject: [PATCH 4/8] Updates aur file --- src/Aur/PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Aur/PKGBUILD b/src/Aur/PKGBUILD index e990f85..5648685 100644 --- a/src/Aur/PKGBUILD +++ b/src/Aur/PKGBUILD @@ -22,4 +22,5 @@ package() { install -Dm755 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/term-pdf-wrp "${pkgdir}/usr/bin/term-pdf" install -d -m700 "${pkgdir}/$HOME/.termpdf" install -Dm700 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/termpdf.py "${pkgdir}/$HOME/.termpdf/termpdf.py" + runuser -u $USER chmod 700 "${pkgdir}/$HOME/.termpdf" } From e94864137827e39900bb99c5f9c6da952264ea0d Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 17 Oct 2023 03:19:11 -0300 Subject: [PATCH 5/8] Updates - paths changes --- src/term-pdf-wrp | Bin 15424 -> 15424 bytes src/term-pdf-wrp.c | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/term-pdf-wrp b/src/term-pdf-wrp index b7d1abe2123d2ebf90f181b803ba1860a58db71e..1075974b89de0ea52dc6acedac8f85c2184126fa 100755 GIT binary patch delta 151 zcmX?5aiC&D1(TqT0s|Pp>B*f;|3%7jx;nLvtnD(=;7PpN;;Hb=)XHr09OhyfJN?q) zBK@5Fh!Y$q`X{pW(0HNe8=>Px# delta 151 zcmX?5aiC&D1(TqL0s|Pp>B*f;|3xJKPYP%9taT5MYX7b77SC{J@{*gI=P(z`*r|B< z`?~7uCFkd*Wv1(wq!#5Cq@?K;R5CD1Gh3?wjbaAkAMgMFj{wpVAO8P$0MddV|Nn0Q h(hQq@6@mpAH8w9au;*aZnEcQ}pA&BJW=TtRW&prcEUo|m diff --git a/src/term-pdf-wrp.c b/src/term-pdf-wrp.c index 20be1f5..3031f94 100644 --- a/src/term-pdf-wrp.c +++ b/src/term-pdf-wrp.c @@ -61,7 +61,9 @@ view and navigate PDF files directly within the terminal. #include int main() { - system("python $HOME/.config/termpdf.py"); + // system("python $HOME/.config/termpdf.py"); + system("python /usr/local/bin/termpdf.py"); + return 0; } From d2100dab4e9dd328d8365e782f861c983cf45ecb Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 17 Oct 2023 03:20:13 -0300 Subject: [PATCH 6/8] Updates --- src/Aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Aur/PKGBUILD b/src/Aur/PKGBUILD index 5648685..a7d3c4e 100644 --- a/src/Aur/PKGBUILD +++ b/src/Aur/PKGBUILD @@ -1,6 +1,6 @@ # Mantenedor: Felipe Alfonso Gonzalez pkgname=term-pdf -pkgver=0.0.3.8 +pkgver=0.0.3.9 pkgrel=1 pkgdesc="TermPDF Viewer is an open-source PDF file viewer designed to run in the terminal." arch=('x86_64') From fe2cd4e4abb4dc5bb6f54f757074296009f83e84 Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 17 Oct 2023 03:20:59 -0300 Subject: [PATCH 7/8] Updates --- src/Aur/PKGBUILD | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Aur/PKGBUILD b/src/Aur/PKGBUILD index a7d3c4e..f9c271e 100644 --- a/src/Aur/PKGBUILD +++ b/src/Aur/PKGBUILD @@ -20,7 +20,5 @@ build() { } package() { install -Dm755 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/term-pdf-wrp "${pkgdir}/usr/bin/term-pdf" - install -d -m700 "${pkgdir}/$HOME/.termpdf" - install -Dm700 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/termpdf.py "${pkgdir}/$HOME/.termpdf/termpdf.py" - runuser -u $USER chmod 700 "${pkgdir}/$HOME/.termpdf" -} + install -Dm755 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/termpdf.py "${pkgdir}/usr/local/bin/termpdf.py" +} \ No newline at end of file From ab4d163739aa6379e1628a5944f4a2e2fab9f6f9 Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 17 Oct 2023 03:25:58 -0300 Subject: [PATCH 8/8] Updates --- installer.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/installer.sh b/installer.sh index bf04d23..c03bc4a 100644 --- a/installer.sh +++ b/installer.sh @@ -147,7 +147,9 @@ move_to_bin_directory() { echo "Moving compiled binary to bin directory..." # - sudo mv termpdf.py "/home/felipe/.config" + #sudo mv termpdf.py "/home/felipe/.config" + # /usr/local/bin/ + sudo mv termpdf.py "/usr/local/bin" sudo mv term-pdf-wrapper "/usr/bin/term-pdf" sudo chmod +x "/usr/bin/term-pdf" @@ -157,8 +159,8 @@ move_to_bin_directory() { run_termpdf_viewer() { echo "Running the TermPDF Viewer..." - python3 /home/felipe/.config/termpdf.py - + #python3 /home/felipe/.config/termpdf.py + python3 /usr/local/bin/termpdf.py echo "TermPDF Viewer executed." }