pyPhotoAlbum/PKGBUILD
Duncan Tourolle ca21f3ae4c
All checks were successful
Python CI / test (push) Successful in 1m6s
Lint / lint (push) Successful in 1m10s
Tests / test (3.10) (push) Successful in 53s
Tests / test (3.11) (push) Successful in 52s
Tests / test (3.9) (push) Successful in 50s
more tests and gnoem+fedora installer
2025-11-11 12:51:15 +01:00

56 lines
1.4 KiB
Bash

# Maintainer: Your Name <your.email@example.com>
pkgname=pyphotoalbum
pkgver=0.1.0
pkgrel=1
pkgdesc="A Python application for designing photo albums and exporting them to PDF"
arch=('any')
url="https://gitea.tourolle.paris/dtourolle/pyPhotoAlbum"
license=('MIT')
depends=(
'python>=3.9'
'python-pyqt6'
'python-pyopengl'
'python-numpy'
'python-pillow'
'python-reportlab'
'python-lxml'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
)
optdepends=(
'python-pytest: for running tests'
'python-pytest-qt: for running tests'
)
source=("${pkgname}-${pkgver}.tar.gz")
sha256sums=('SKIP') # Update with actual checksum after creating source tarball
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Install Python package
python -m installer --destdir="$pkgdir" dist/*.whl
# Install desktop file
install -Dm644 "${pkgname}.desktop" \
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
# Install icon
install -Dm644 pyPhotoAlbum/icons/icon.png \
"${pkgdir}/usr/share/icons/hicolor/256x256/apps/${pkgname}.png"
# Install license
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Install documentation
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}