Minor install command cleanups
This commit is contained in:
parent
1ee3d10f3e
commit
9d226cb78d
15
PKGBUILD
15
PKGBUILD
@ -11,21 +11,22 @@ makedepends=('git' 'python-setuptools')
|
||||
checkdepends=('python-pytest')
|
||||
backup=(etc/$pkgname/backup.conf
|
||||
etc/$pkgname/etc-include.conf
|
||||
etc/$pkgname/home-include.conf)
|
||||
source=("file:///${HOME}/Projects/rbackup")
|
||||
etc/$pkgname/home-exclude.conf)
|
||||
source=("${pkgname}-${pkgver}.tar.gz")
|
||||
sha512sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${pkgname}"
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/${pkgname}"
|
||||
python -m unittest tests
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
python -m unittest
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/${pkgname}"
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
python setup.py install \
|
||||
--prefix='/usr' \
|
||||
@ -34,7 +35,7 @@ package() {
|
||||
--skip-build
|
||||
|
||||
# Install config files
|
||||
for config in rbackup/config/*; do
|
||||
for config in rbackup/config/*.conf; do
|
||||
install -Dm644 "${config}" "${pkgdir}/etc/${pkgname}/${config##*/}"
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user