Compare commits

...
2 Commits
Author SHA1 Message Date
Fuxino 3e486eb3ab Install README in PKGBUILD
Install README.md to /usr/share/doc, bump pkgrel to 2 and quote variables.
2026-10-14 13:25:41 +02:00
Fuxino 331e72b373 Update PKGBUILD
Update to 4.4.0 and run the test suite in check().
2026-10-14 09:49:46 +02:00
+20 -10
View File
@@ -4,9 +4,9 @@
pkgname=simple_backup pkgname=simple_backup
pkgdesc='Simple backup script that uses rsync to copy files' pkgdesc='Simple backup script that uses rsync to copy files'
pkgver=4.3.0 pkgver=4.4.0
pkgrel=1 pkgrel=2
url="https://git.shouldnt.work/fuxino/${pkgname}" url="https://git.shouldnt.work/fuxino/$pkgname"
arch=('any') arch=('any')
license=('GPL-3.0-or-later') license=('GPL-3.0-or-later')
makedepends=('git' makedepends=('git'
@@ -18,21 +18,31 @@ depends=('python>=3.10'
optdepends=('python-systemd: use systemd log' optdepends=('python-systemd: use systemd log'
'python-dbus: for desktop notifications' 'python-dbus: for desktop notifications'
'python-paramiko: for remote backup through ssh') 'python-paramiko: for remote backup through ssh')
checkdepends=('python-pytest'
'python-paramiko'
'openssh')
conflicts=('simple_backup-git') conflicts=('simple_backup-git')
source=(git+${url}?signed#tag=${pkgver}) source=("git+$url?signed#tag=$pkgver")
validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514') validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514')
sha256sums=('7d9ea50d5829ac3c681a979745f1ae7afd2453eb46ceeae4f441ef5ae4540bd2') sha256sums=('cc5944558ed4bc30a0d1a00b49dfced371909dd6c4f39b0c1ccf8f39b445e907')
build() build()
{ {
cd ${srcdir}/${pkgname} cd "$srcdir"/"$pkgname"
python -m build --wheel --no-isolation python -m build --wheel --no-isolation
} }
check()
{
cd "$srcdir"/"$pkgname"
python -m pytest
}
package() package()
{ {
cd ${srcdir}/${pkgname} cd "$srcdir"/"$pkgname"
python -m installer --destdir=${pkgdir} dist/*.whl python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 ${pkgname}/${pkgname}.conf ${pkgdir}/usr/share/doc/${pkgname}/${pkgname}.conf install -Dm644 "$pkgname"/"$pkgname".conf "$pkgdir"/usr/share/doc/"$pkgname"/"$pkgname".conf
install -Dm644 man/${pkgname}.1 ${pkgdir}/usr/share/man/man1/${pkgname}.1 install -Dm644 README.md "$pkgdir"/usr/share/doc/"$pkgname"/README.md
install -Dm644 man/"$pkgname".1 "$pkgdir"/usr/share/man/man1/"$pkgname".1
} }