summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15e33d3cb3c69a557159f40e1b0cedb4254e532c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## Maintainer: realasking
pkgname=readpdf-git
pkgver=0.2
pkgrel=2
pkgdesc='A simple script for pdf reading on tty / CLI, framebuffer, fbi and poppler are needed.'
arch=(x86_64 i686)
url='https://github.com/realasking/tty_pdf_reading'
license=('GPLv3')
depends=('poppler' 'fbida')
source=()
md5sums=()

_proj=https://github.com/realasking/tty_pdf_reading.git 
_name=tty_pdf_reading

prepare() {
	cd "${srcdir}"
	msg "Starting Git..."
	if [[ -d "$_proj" ]]; then
		cd "$_proj"
		git pull origin
	else
		git clone "$_proj" "$_name"
	fi
	msg "Project synchronization Finished."
}

package() {
	cd "$srcdir/$_name"
	install -Dm755 readpdf.sh "${pkgdir}/usr/bin/readpdf"
}