# Maintainer: Bruno Pagani <archange@archlinux.org>

pkgname=img2pdf
pkgver=0.3.3
pkgrel=1
pkgdesc="Losslessly convert raster images to PDF"
arch=('any')
url='https://gitlab.mister-muffin.de/josch/img2pdf'
license=('LGPL3')
depends=('python-pillow' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/i/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('9d77c17ee65a736abe92ef8cba9cca009c064ea4ed74492c01aea596e41856cf')

build() {
    cd ${pkgname}-${pkgver}
    python setup.py build
}

package() {
    cd ${pkgname}-${pkgver}
    python setup.py install --skip-build --prefix=/usr --root="${pkgdir}" --optimize=1
}
