more tests and gnoem+fedora installer
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
# 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"
|
||||
}
|
||||
Reference in New Issue
Block a user