blob: 7d9fea969432a5ee3c6aa8a9c3bfca8025e192d5 (
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
32
33
34
35
36
37
38
39
40
|
# Maintainer: WindustH <windusth2006@gmail.com>
pkgname=pdf-tui
pkgver=0.2.16
pkgrel=1
pkgdesc="Terminal PDF reader built with ratatui and terminal graphics protocols."
arch=('x86_64' 'aarch64')
url="https://github.com/WindustH/pdf-tui"
license=('MIT')
depends=('chafa' 'mupdf-tools' 'pdfium-binaries-bin' 'pdftk' 'poppler')
makedepends=('git' 'rust')
optdepends=(
'perl-image-exiftool: edit PDF metadata'
'wl-clipboard: copy selected text and PNGs on Wayland'
'xclip: copy selected text and PNGs on X11'
'xsel: copy selected text on X11'
)
conflicts=("$pkgname-git")
options=('!lto')
source=("$pkgname::git+$url.git#tag=v$pkgver")
sha256sums=('SKIP')
prepare() {
cd "$pkgname"
git submodule update --init --recursive
}
build() {
cd "$pkgname"
cargo build --release --locked
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
cp -r doc "$pkgdir/usr/share/doc/$pkgname/"
}
|