Add basic install commands to PKGBUILD and set version

This commit is contained in:
Eric Torres 2019-03-13 02:28:15 -07:00
parent c9fcfcaa8a
commit 827f5f0913
2 changed files with 21 additions and 15 deletions

View File

@ -1,24 +1,18 @@
# Maintainer: Eric Torres <erictorres4@protonmail.com>
pkgname=rbackup
pkgver=0
pkgver=0.1
pkgrel=1
pkgdesc="An rsync-based tool for backing up files"
arch=('any')
url=""
license=('MIT')
groups=()
depends=('python')
depends=(python rsync)
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest')
backup=()
backup=(etc/$pkgname/backup.conf
etc/$pkgname/etc-include.conf
etc/$pkgname/home-include.conf)
source=("file:///${HOME}/Projects/rbackup")
noextract=()
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/${pkgname}"
@ -26,8 +20,20 @@ build() {
}
package() {
cd "$srcdir/${pkgname%-git}"
cd "$srcdir/${pkgname}"
# install main package
python setup.py install --prefix='/usr' --root="${pkgdir}" --optimize=1 --skip-build
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
# Install AppArmor profile
install -Dm644 rbackup/config/usr.bin.backup \
"${pkgdir}/etc/apparmor.d/usr.bin.backup"
}

View File

@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup(
name="rbackup",
version="0.0.1",
version="0.1",
author="Eric Torres",
author_email="erictorres4@protonmail.com",
description="An rsync-based tool for creating backups",