Minor install command cleanups

This commit is contained in:
Eric Torres 2019-03-17 09:37:06 -07:00
parent 1ee3d10f3e
commit 9d226cb78d

View File

@ -11,21 +11,22 @@ makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest') checkdepends=('python-pytest')
backup=(etc/$pkgname/backup.conf backup=(etc/$pkgname/backup.conf
etc/$pkgname/etc-include.conf etc/$pkgname/etc-include.conf
etc/$pkgname/home-include.conf) etc/$pkgname/home-exclude.conf)
source=("file:///${HOME}/Projects/rbackup") source=("${pkgname}-${pkgver}.tar.gz")
sha512sums=('SKIP')
build() { build() {
cd "$srcdir/${pkgname}" cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py build python setup.py build
} }
check() { check() {
cd "$srcdir/${pkgname}" cd "${srcdir}/${pkgname}-${pkgver}"
python -m unittest tests python -m unittest
} }
package() { package() {
cd "$srcdir/${pkgname}" cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py install \ python setup.py install \
--prefix='/usr' \ --prefix='/usr' \
@ -34,7 +35,7 @@ package() {
--skip-build --skip-build
# Install config files # Install config files
for config in rbackup/config/*; do for config in rbackup/config/*.conf; do
install -Dm644 "${config}" "${pkgdir}/etc/${pkgname}/${config##*/}" install -Dm644 "${config}" "${pkgdir}/etc/${pkgname}/${config##*/}"
done done