blob: 7f5aa3aa7d1c4e0834194650072daf64622c3b84 (
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
41
42
43
44
45
46
|
# shellcheck disable=SC2034,SC2148,SC2154
# Maintainer: Toria <ninetailedtori@uwu.gal>
_pkgname=masterpdfeditor
pkgname=${_pkgname}-qt_include
pkgver=5.9.98
_patchver='-1'
pkgrel=2
pkgdesc='A complete solution for viewing, creating and editing PDF files (qt5 version with static-linked qt libs).'
url='https://code-industry.net/free-pdf-editor/'
_checksum=$(curl 'https://code-industry.net/checksum-information/' | grep -oP '[a-f0-9]{40}(?=.*master-pdf-editor-'"${pkgver}${_patchver}"'-qt5.x86_64-qt_include.tar.gz)')
arch=('x86_64')
license=('custom')
depends=(
'libgl'
'pkcs11-helper'
'sane'
'xcb-util-image'
'xcb-util-keysyms'
'xcb-util-renderutil'
'xcb-util-wm'
'glibc>=2.28'
)
makedepends=(
'curl'
'patchelf'
)
provides=("${_pkgname}=${pkgver}")
conflicts=(
"${_pkgname}-qt6"
"${_pkgname}-qt5"
)
source_x86_64=("https://code-industry.net/public/master-pdf-editor-${pkgver}${_patchver}-qt5.x86_64-qt_include.tar.gz")
sha1sums_x86_64=("${_checksum% *}")
package() {
install -d "${pkgdir}/opt"
install -d "${pkgdir}/usr/bin"
cp -a --no-preserve=ownership "master-pdf-editor-${pkgver%%.*}" "${pkgdir}/opt/masterpdfeditor"
cd "${pkgdir}/opt/masterpdfeditor" || return 1
ln -sr "masterpdfeditor${pkgver%%.*}" -t "${pkgdir}/usr/bin/"
install -Dm644 "masterpdfeditor${pkgver%%.*}.desktop" -t "${pkgdir}/usr/share/applications/"
install -Dm644 'license_en.txt' -t "${pkgdir}/usr/share/licenses/${pkgname}/"
patchelf --remove-rpath "masterpdfeditor${pkgver%%.*}"
}
|