blob: 1b69d1c2ce94f7e5f08ebe4d5e9bdfd85f18e296 (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Maintainer: Yoan Blanc <yoan@dosimple.ch>
# Contributor: Harry Jeffery <harry|@|exec64|.|co|.|uk>
# Contributor: Chris Morgan <me@chrismorgan.info>
pkgname=prince-bin
pkgver=15.4.1
pkgrel=1
pkgdesc="Convert HTML documents to PDF with CSS"
arch=(x86_64 aarch64)
url='https://www.princexml.com/'
license=('custom')
depends=('ca-certificates-utils' 'fontconfig' 'libidn' 'libxml2')
provides=("${pkgname%-bin}" 'princexml')
conflicts=('sdlpop' 'princexml')
replaces=('princexml')
backup=("etc/${pkgname%-bin}/license.dat")
source=('prince.sh')
source_x86_64=("https://www.princexml.com/download/${pkgname%-bin}-$pkgver-linux-generic-x86_64.tar.gz")
source_aarch64=("https://www.princexml.com/download/${pkgname%-bin}-$pkgver-linux-generic-aarch64.tar.gz")
sha256sums=('a02a6159dd0ae8b2a2440c21ed370fd5057148cc6633214f8bc48228d23138fb')
sha256sums_x86_64=('4b91241934bbfc11041e81313c0e6770b76154bae34f06053302052c2e078fdd')
sha256sums_aarch64=('802f8277188705800727fa610bfb489b4b2e900e2231bea9a92d2b66ed390062')
prepare() {
cd "${pkgname%-bin}-$pkgver-linux-generic-$CARCH"
mkdir -p "etc/${pkgname%-bin}"
mv lib/prince/license/license.dat "etc/${pkgname%-bin}/"
ln -sf "../../../../etc/${pkgname%-bin}/license.dat" lib/prince/license
ln -sf "../../../../etc/ssl/certs/ca-certificates.crt" lib/prince/etc/curl-ca-bundle.crt
}
package() {
cd "${pkgname%-bin}-$pkgver-linux-generic-$CARCH"
install -Dm755 "../${source[0]}" "$pkgdir/usr/bin/${pkgname%-bin}"
install -Dm644 -t "$pkgdir/usr/share/licenses/${pkgname%-bin}" LICENSE CREDITS
install -Dm644 -t "$pkgdir/usr/share/doc/${pkgname%-bin}" README
install -Dm644 -t "$pkgdir/etc/${pkgname%-bin}/" "etc/${pkgname%-bin}/license.dat"
mkdir -p "$pkgdir/usr/lib/"
cp -a lib/prince "$pkgdir/usr/lib/"
}
|