46 lines
1.4 KiB
Bash
46 lines
1.4 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=wkhtmltopdf
|
|
pkgver=0.12.6
|
|
pkgrel=02
|
|
pkgdesc="Command line tools to render HTML into PDF and various image formats"
|
|
url="https://wkhtmltopdf.org/"
|
|
depends=('qt5-webkit' 'qt5-svg' 'qt5-xmlpatterns')
|
|
makedepends=('git')
|
|
optdepends=('xorg-server: wkhtmltopdf needs X or Xvfb to operate')
|
|
source=("git+https://github.com/wkhtmltopdf/wkhtmltopdf.git#tag=$pkgver?signed")
|
|
|
|
build() {
|
|
cd $pkgname
|
|
qmake-qt5 wkhtmltopdf.pro
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
make INSTALL_ROOT="$pkgdir/usr" install
|
|
|
|
# Generate and install man pages
|
|
install -d "$pkgdir/usr/share/man/man1"
|
|
LD_LIBRARY_PATH=bin ./bin/wkhtmltopdf --manpage \
|
|
>"$pkgdir/usr/share/man/man1/wkhtmltopdf.1"
|
|
LD_LIBRARY_PATH=bin ./bin/wkhtmltoimage --manpage \
|
|
>"$pkgdir/usr/share/man/man1/wkhtmltoimage.1"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('LGPL3')
|
|
validpgpkeys=('76C0969C076A23EC4849F462D3E3E8ACF99DE8EA') # Ashish Kulkarni (Open Source) <ashish@kulkarni.dev>
|
|
sha256sums=('SKIP')
|
|
|
|
## 1fd8c8fa661b5355210e33ad8dec0add7cc3352c0ce367f9eceeb8d0cd6ad052 wkhtmltopdf-0.12.6-02-x86_64.pkg.tar.lz
|
|
|