Мaybe it will be useful to someone..
I'm providing part of the makefile from my project for installing wkhtmltopdf.


# wkhtmltox
PKG_URL  := 
https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.jammy_amd64.deb
PKG_NAME := $(notdir $(PKG_URL))
PKG_DIR := ./distrib
PKG_PATH := $(PKG_DIR)/$(PKG_NAME)


# do not use apt install wkhtmltopdf directly from standard repos !!!
# it often installs the unpatched version!!!
# Instead, download the official package for your specific OS version
setup_wkhtmltopdf: $(PKG_PATH)
        sudo apt install -y $(PKG_PATH)
        sudo apt-get install -f
        wkhtmltopdf --version

# Download target: will only work if the file does not exist
$(PKG_PATH):
        mkdir -p $(PKG_DIR)
        wget -P $(PKG_DIR) $(PKG_URL)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2155069

Title:
  needs-packaging wkhtmltopdf ubuntu 26.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wkhtmltopdf/+bug/2155069/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to