PKGBUILD: Simplify install commands

This commit is contained in:
Eric Torres 2022-10-04 06:05:19 -07:00
parent b4f7478a4b
commit d5e102d1c7

View File

@ -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
}