Files
simple_backup/PKGBUILD
T

49 lines
1.0 KiB
Bash
Raw Normal View History

2023-05-04 23:21:12 +02:00
# PKGBUILD
# Maintainer: Daniele Fucini <dfucini@gmail.com>
2019-09-16 18:12:19 +02:00
2023-04-15 19:49:33 +02:00
pkgname=simple_backup
2023-05-04 23:42:55 +02:00
pkgver=3.1.2.r1.ga4c4b88
2019-09-16 18:12:19 +02:00
pkgrel=1
pkgdesc='Simple backup script that uses rsync to copy files'
arch=('any')
2023-04-15 19:49:33 +02:00
url="https://github.com/Fuxino/simple_backup.git"
2019-09-16 18:12:19 +02:00
license=('GPL3')
2023-05-04 23:21:12 +02:00
makedepends=('git'
2023-05-05 19:03:23 +02:00
'python-setuptools'
'python-build'
'python-installer'
'python-wheel')
2023-05-04 23:21:12 +02:00
depends=('python'
2023-04-15 21:36:45 +02:00
'rsync'
2023-04-29 21:28:42 +02:00
'python-dotenv'
2023-04-30 22:06:30 +02:00
'python-dbus'
'python-systemd')
2019-09-16 18:12:19 +02:00
install=${pkgname}.install
2019-09-16 19:40:35 +02:00
source=(git+https://github.com/Fuxino/${pkgname}.git)
sha256sums=('SKIP')
2019-09-16 18:12:19 +02:00
pkgver()
{
2023-05-04 23:21:12 +02:00
cd ${pkgname}
2019-09-16 18:12:19 +02:00
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
2023-05-05 19:03:23 +02:00
prepare()
{
git -C ${srcdir}/${pkgname} clean -dfx
}
2023-05-04 23:21:12 +02:00
build()
{
cd ${srcdir}/${pkgname}
2023-05-05 19:03:23 +02:00
python -m build --wheel --no-isolation
2023-05-04 23:21:12 +02:00
}
2019-09-16 18:12:19 +02:00
package()
{
2023-05-04 23:21:12 +02:00
cd ${srcdir}/${pkgname}
2023-05-05 19:03:23 +02:00
python -m installer --destdir=${pkgdir} dist/*.whl
install -Dm644 ${srcdir}/${pkgname}/${pkgname}.conf ${pkgdir}/etc/${pkgname}/${pkgname}.conf
2019-09-16 18:12:19 +02:00
}