PKGBUILD: Simplify install commands
This commit is contained in:
parent
b4f7478a4b
commit
d5e102d1c7
16
PKGBUILD
16
PKGBUILD
@ -24,19 +24,10 @@ build() {
|
||||
#python setup.py build_sphinx -b man
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
python setup.py install \
|
||||
--prefix='/usr' \
|
||||
--root="${pkgdir}" \
|
||||
--optimize=1 \
|
||||
--skip-build
|
||||
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
|
||||
|
||||
# Install config files
|
||||
for config in config_files/*.conf; do
|
||||
@ -51,3 +42,8 @@ package() {
|
||||
install -Dm644 README.rst \
|
||||
"${pkgdir}/usr/share/doc/${pkgname}/README.rst"
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
pytest
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user