rbackup/PKGBUILD

40 lines
946 B
Bash
Raw Normal View History

2019-02-07 23:19:21 -08:00
# Maintainer: Eric Torres <erictorres4@protonmail.com>
pkgname=rbackup
pkgver=0.1
2019-02-07 23:19:21 -08:00
pkgrel=1
pkgdesc="An rsync-based tool for backing up files"
arch=('any')
url=""
license=('MIT')
depends=(python rsync)
2019-02-07 23:19:21 -08:00
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest')
backup=(etc/$pkgname/backup.conf
etc/$pkgname/etc-include.conf
etc/$pkgname/home-include.conf)
2019-02-07 23:19:21 -08:00
source=("file:///${HOME}/Projects/rbackup")
build() {
cd "$srcdir/${pkgname}"
python setup.py build
}
package() {
cd "$srcdir/${pkgname}"
python setup.py install \
--prefix='/usr' \
--root="${pkgdir}" \
--optimize=1 \
--skip-build
# Install config files
for config in rbackup/config/*; do
install -Dm644 "${config}" "${pkgdir}/etc/${pkgname}/${config##*/}"
done
2019-02-07 23:19:21 -08:00
# Install AppArmor profile
install -Dm644 rbackup/config/usr.bin.backup \
"${pkgdir}/etc/apparmor.d/usr.bin.backup"
2019-02-07 23:19:21 -08:00
}