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
|
#python setup.py build_sphinx -b man
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
pytest
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
|
||||||
python setup.py install \
|
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
|
||||||
--prefix='/usr' \
|
|
||||||
--root="${pkgdir}" \
|
|
||||||
--optimize=1 \
|
|
||||||
--skip-build
|
|
||||||
|
|
||||||
# Install config files
|
# Install config files
|
||||||
for config in config_files/*.conf; do
|
for config in config_files/*.conf; do
|
||||||
@ -51,3 +42,8 @@ package() {
|
|||||||
install -Dm644 README.rst \
|
install -Dm644 README.rst \
|
||||||
"${pkgdir}/usr/share/doc/${pkgname}/README.rst"
|
"${pkgdir}/usr/share/doc/${pkgname}/README.rst"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
pytest
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user