Files
simple_backup/PKGBUILD

40 lines
801 B
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'
'python-setuptools')
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-04 23:21:12 +02:00
build()
{
cd ${srcdir}/${pkgname}
python3 setup.py build
}
2019-09-16 18:12:19 +02:00
package()
{
2023-05-04 23:21:12 +02:00
cd ${srcdir}/${pkgname}
python3 setup.py install --root=${pkgdir} --optimize=1 --skip-build
2019-09-16 18:12:19 +02:00
}