# Maintainer: Stu Leak pkgname=img2pdf pkgver=1.0.3 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/stu/img2pdf" license=('MIT') depends=('python' 'python-pillow') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') # Gitea tag archive (works after you push tag v$pkgver) source=("$pkgname-$pkgver.tar.gz::https://git.leaktechnologies.dev/stu/img2pdf/archive/v$pkgver.tar.gz") sha256sums=('SKIP') build() { cd "$(find "$srcdir" -maxdepth 1 -type d -name "${pkgname}*" | head -n 1)" python -m build --wheel --no-isolation } package() { cd "$(find "$srcdir" -maxdepth 1 -type d -name "${pkgname}*" | head -n 1)" python -m installer --destdir="$pkgdir" dist/*.whl } # Usage: # makepkg -si # img2pdf ./images -o output.pdf