# Maintainer: Stu Leak # Leak Technologies internal packaging pkgname=img2pdf pkgver=1.0.0 pkgrel=1 pkgdesc="Convert a single image or a folder of images to a PDF (sorted by filename)." arch=('any') url="https://git.leaktechnologies.dev/Leak-Technologies/img2pdf" license=('MIT') depends=('python' 'python-pillow') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') source=("$pkgname-$pkgver.tar.gz::$url/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz") sha256sums=('SKIP') build() { cd "$srcdir/$pkgname-v$pkgver" python -m build --wheel --no-isolation } package() { cd "$srcdir/$pkgname-v$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl } # Usage: # makepkg -si # img2pdf ./images -o output.pdf