blob: a8c87bd62deb91d4386d838f15f5bf58e8cfa4c2 (
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
|
# Maintainer: Felipe Alfonso Gonzalez <f.alfonso@res-ear.ch>
pkgname=feather-pdf
pkgver=1.0.6
pkgrel=1
pkgdesc="FeatherPDF is an ultra-lightweight PDF viewer."
arch=('x86_64')
url="https://github.com/felipealfonsog/FeatherPDF"
license=('MIT')
depends=('python' 'python-pip' 'python-pyqt5')
source=("https://github.com/felipealfonsog/FeatherPDF/archive/refs/tags/v.${pkgver}.tar.gz")
sha256sums=('088247af0b545b7e4aa1b24491c76048b56a4d65a7f885e0166804731c33031a')
prepare() {
tar xf "v.${pkgver}.tar.gz" -C "$srcdir" --strip-components=1
}
package() {
# Install the Python script
install -Dm755 "$srcdir"/FeatherPDF-v."${pkgver}"/src/featherpdf.py "${pkgdir}/usr/local/bin/feather-pdf.py"
# Create a shell script to execute feather-pdf.py and copy it to /usr/local/bin
echo '#!/bin/bash' > feather-pdf
echo 'python3 /usr/local/bin/feather-pdf.py "$@"' >> feather-pdf
chmod +x feather-pdf
install -Dm755 feather-pdf "${pkgdir}/usr/local/bin/feather-pdf"
# Install the icon
install -Dm644 -p "$srcdir"/FeatherPDF-v."${pkgver}"/src/fpdf-iconlogo.png "${pkgdir}/usr/share/pixmaps/feather-pdf.png"
# Install the .desktop file
install -Dm644 -p "$srcdir"/FeatherPDF-v."${pkgver}"/src/feather-pdf.desktop "${pkgdir}/usr/share/applications/feather-pdf.desktop"
}
|