Skip to content

Commit

Permalink
Merge pull request #77 from felipealfonsog/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
felipealfonsog authored Oct 17, 2023
2 parents 2302cfe + d169750 commit 09c45d1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 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.6
pkgver=0.0.3.7
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=('19918b1453dea418ed1dc7261e4d72f8af91187a12e145e0b991e46edd77a017')
sha256sums=('94e0b146bd2cff9dac9c1ca3a825dbb0e568765dda4aac467c790cafcac3b7e2')

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 -Dm600 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/termpdf.py "${pkgdir}/$HOME/.config/termpdf.py"
install -Dm755 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/termpdf.py "${pkgdir}/$HOME/.config/termpdf.py"
}
Binary file modified src/term-pdf-wrp
Binary file not shown.
10 changes: 7 additions & 3 deletions src/term-pdf-wrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,18 @@ view and navigate PDF files directly within the terminal.

// pkgver=0.0.3.4

/*

#include <stdio.h>
#include <stdlib.h>

int main() {
system("python ./TermPDFViewer-v.0.0.3.4/src/termpdf.py");
system("python $HOME/.config/termpdf.py");
return 0;
}
*/



/*
#include <stdio.h>
#include <stdlib.h>
Expand All @@ -80,3 +83,4 @@ int main() {
return 0;
}
*/

0 comments on commit 09c45d1

Please sign in to comment.