Files
simple_backup/PKGBUILD
T
Fuxino 7dbb1bcaee Update PKGBUILD
Update to 4.4.1.
2026-10-15 20:34:42 +02:00

49 lines
1.3 KiB
Bash

# PKGBUILD
# Maintainer: Daniele Fucini <dfucini [at] gmail [dot] com>
pkgname=simple_backup
pkgdesc='Simple backup script that uses rsync to copy files'
pkgver=4.4.1
pkgrel=1
url="https://git.shouldnt.work/fuxino/$pkgname"
arch=('any')
license=('GPL-3.0-or-later')
makedepends=('git'
'python-setuptools'
'python-build'
'python-installer')
depends=('python>=3.10'
'rsync')
optdepends=('python-systemd: use systemd log'
'python-dbus: for desktop notifications'
'python-paramiko: for remote backup through ssh')
checkdepends=('python-pytest'
'python-paramiko'
'openssh')
conflicts=('simple_backup-git')
source=("git+$url?signed#tag=$pkgver")
validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514')
sha256sums=('cc5b378ac489f7cf3e3a38855dfd530a79f0651a1891ea83355b952ed3a20aee')
build()
{
cd "$srcdir"/"$pkgname"
python -m build --wheel --no-isolation
}
check()
{
cd "$srcdir"/"$pkgname"
python -m pytest
}
package()
{
cd "$srcdir"/"$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "$pkgname"/"$pkgname".conf "$pkgdir"/usr/share/doc/"$pkgname"/"$pkgname".conf
install -Dm644 README.md "$pkgdir"/usr/share/doc/"$pkgname"/README.md
install -Dm644 man/"$pkgname".1 "$pkgdir"/usr/share/man/man1/"$pkgname".1
}