blob: 793bb1905332ad36a8f7f0283d38516ca01880c1 (
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
47
48
49
50
51
52
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=quickpdfjoin-bin
_pkgname="Quick PDF Join"
_appname=QuickPdfJoin
pkgver=1.2024.10.02
pkgrel=1
pkgdesc="Quick PDF Join is a cross-platform application that joins multiple PDF files together."
arch=(
"aarch64"
"x86_64"
)
url="https://github.com/mihnea-radulescu/quickpdfjoin"
license=(
"GPL-3.0-only"
"MIT"
)
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
options=(
'!strip'
'staticlibs'
)
depends=(
'fontconfig'
'dotnet-runtime>=8'
)
makedepends=(
'gendesk'
'icoutils'
)
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.tar.gz::${url}/releases/download/${pkgver}/${_pkgname// /}_Linux_arm64.tar.gz")
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.tar.gz::${url}/releases/download/${pkgver}/${_pkgname// /}_Linux_x64.tar.gz")
source=("${pkgname%-bin}.sh")
sha256sums=('6aca7dfd3abf71dd91e7b5d6a6d78084c8d52cf5df2564d3889b07e6621940c4')
sha256sums_aarch64=('bd8190a2c1c2e0091c957c182c0fe8ae767fc1affbe2e5aebc7a97eaa9ef247f')
sha256sums_x86_64=('3b0f301f50955b7d12adf7e7223dd8bf08d905204ba129ad92649e6541f0d2da')
build() {
sed -e "
s/@appname@/${pkgname%-bin}/g
s/@runname@/${_appname}/g
" -i "${srcdir}/${pkgname%-bin}.sh"
icotool -i 1 -x "${srcdir}/${_appname}_Linux_"*/ApplicationIcon.ico -o "${srcdir}/${pkgname%-bin}.png"
gendesk -q -f -n --categories="Utility" --name="${_pkgname}" --exec="${pkgname%-bin} %U"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 "${srcdir}/${_appname}_Linux_"*/"${_appname}" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
install -Dm644 "${srcdir}/${_appname}_Linux_"*/*.* -t "${pkgdir}/usr/lib/${pkgname%-bin}"
install -Dm644 "${srcdir}/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps"
install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/${_appname}_Linux_"*/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|