Add basic install commands to PKGBUILD and set version
This commit is contained in:
parent
c9fcfcaa8a
commit
827f5f0913
34
PKGBUILD
34
PKGBUILD
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user