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>
|
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
||||||
pkgname=rbackup
|
pkgname=rbackup
|
||||||
pkgver=0
|
pkgver=0.1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="An rsync-based tool for backing up files"
|
pkgdesc="An rsync-based tool for backing up files"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url=""
|
url=""
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
groups=()
|
depends=(python rsync)
|
||||||
depends=('python')
|
|
||||||
makedepends=('git' 'python-setuptools')
|
makedepends=('git' 'python-setuptools')
|
||||||
checkdepends=('python-pytest')
|
checkdepends=('python-pytest')
|
||||||
backup=()
|
backup=(etc/$pkgname/backup.conf
|
||||||
|
etc/$pkgname/etc-include.conf
|
||||||
|
etc/$pkgname/home-include.conf)
|
||||||
source=("file:///${HOME}/Projects/rbackup")
|
source=("file:///${HOME}/Projects/rbackup")
|
||||||
noextract=()
|
|
||||||
|
|
||||||
pkgver() {
|
|
||||||
cd "$srcdir/${pkgname%-git}"
|
|
||||||
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/${pkgname}"
|
cd "$srcdir/${pkgname}"
|
||||||
@ -26,8 +20,20 @@ build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/${pkgname%-git}"
|
cd "$srcdir/${pkgname}"
|
||||||
|
|
||||||
# install main package
|
python setup.py install \
|
||||||
python setup.py install --prefix='/usr' --root="${pkgdir}" --optimize=1 --skip-build
|
--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"
|
||||||
}
|
}
|
||||||
|
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="rbackup",
|
name="rbackup",
|
||||||
version="0.0.1",
|
version="0.1",
|
||||||
author="Eric Torres",
|
author="Eric Torres",
|
||||||
author_email="erictorres4@protonmail.com",
|
author_email="erictorres4@protonmail.com",
|
||||||
description="An rsync-based tool for creating backups",
|
description="An rsync-based tool for creating backups",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user