Remove PKGBUILD from repo
This commit is contained in:
parent
ee0a848413
commit
2a943ad32c
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ tags
|
|||||||
*.tar.xz
|
*.tar.xz
|
||||||
.coverage
|
.coverage
|
||||||
.hypothesis
|
.hypothesis
|
||||||
|
PKGBUILD
|
||||||
|
49
PKGBUILD
49
PKGBUILD
@ -1,49 +0,0 @@
|
|||||||
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
|
||||||
pkgname=rbackup
|
|
||||||
pkgver=0.1.1
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="An rsync-based tool for backing up files"
|
|
||||||
arch=('any')
|
|
||||||
url=""
|
|
||||||
license=('MIT')
|
|
||||||
depends=(python rsync)
|
|
||||||
makedepends=(python-setuptools)
|
|
||||||
checkdepends=(python-hypothesis python-pytest)
|
|
||||||
backup=(etc/$pkgname/backup.conf
|
|
||||||
etc/$pkgname/include-paths.conf
|
|
||||||
etc/$pkgname/home-exclude.conf)
|
|
||||||
source=("${pkgname}-${pkgver}.tar.gz")
|
|
||||||
sha512sums=('d46504da5c996f041f276b6045d904b9e6b5dfd18781ae7d7d308175ded1b48851c588db42752f539ab412e77a46f5e53c4d0ca08ea3545073bd1a0fce15882b')
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
python setup.py build
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
pytest
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
|
|
||||||
python setup.py install \
|
|
||||||
--prefix='/usr' \
|
|
||||||
--root="${pkgdir}" \
|
|
||||||
--optimize=1 \
|
|
||||||
--skip-build
|
|
||||||
|
|
||||||
# Install config files
|
|
||||||
for config in rbackup/config/*.conf; 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"
|
|
||||||
|
|
||||||
# Install documetation
|
|
||||||
install -Dm644 README \
|
|
||||||
"${pkgdir}/usr/share/doc/${pkgname}/README"
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user