Skip to content

Commit

Permalink
Merge pull request #80 from felipealfonsog/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
felipealfonsog committed Oct 17, 2023
2 parents 3d0eb85 + ab4d163 commit 1902924
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 5 additions & 3 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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."
}

Expand Down
8 changes: 4 additions & 4 deletions src/Aur/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Mantenedor: Felipe Alfonso Gonzalez <f.alfonso@res-ear.ch>
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')
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
Expand All @@ -20,5 +20,5 @@ 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 -Dm755 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/termpdf.py "${pkgdir}/usr/local/bin/termpdf.py"
}
Binary file modified src/term-pdf-wrp
Binary file not shown.
4 changes: 3 additions & 1 deletion src/term-pdf-wrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ view and navigate PDF files directly within the terminal.
#include <stdlib.h>

int main() {
system("python $HOME/.config/termpdf.py");
// system("python $HOME/.config/termpdf.py");
system("python /usr/local/bin/termpdf.py");

return 0;
}

Expand Down

0 comments on commit 1902924

Please sign in to comment.