diff options
author | BrainDamage | 2020-11-09 18:27:03 +0100 |
---|---|---|
committer | BrainDamage | 2020-11-09 18:27:03 +0100 |
commit | 90b1cfbdf1e68cc56746f376fffed68790480521 (patch) | |
tree | dea5406b71c575d3eeb1a55c13dc58ba42e59a43 | |
parent | abb8dc7b058d1923bb6b2fc4c6c7636a602aeece (diff) | |
download | aur-90b1cfbdf1e68cc56746f376fffed68790480521.tar.gz |
use install-data in place of moving files manually
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 4 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = mautrix-telegram pkgdesc = A Matrix-Telegram hybrid puppeting/relaybot bridge. pkgver = 0.8.2 - pkgrel = 3 + pkgrel = 4 url = https://github.com/tulir/mautrix-telegram arch = any license = AGPLv3 @@ -1,7 +1,7 @@ # Maintainer: BrainDamage pkgname=mautrix-telegram pkgver=0.8.2 -pkgrel=3 +pkgrel=4 pkgdesc="A Matrix-Telegram hybrid puppeting/relaybot bridge." url="https://github.com/tulir/mautrix-telegram" depends=('python' 'python-sqlalchemy' 'python-alembic' 'python-ruamel-yaml' @@ -44,15 +44,13 @@ build() { package() { cd "${srcdir}/${pkgname}-${pkgver}" _shared_dir="/usr/share/${pkgname}" - python setup.py install --optimize=1 --skip-build --root="${pkgdir}/" --prefix="/usr" + python setup.py install --optimize=1 --skip-build --root="${pkgdir}/" --prefix="/usr" --install-data="${_shared_dir}" # it's a semi-common failure for python packages to install tests in the main dir # which would make them conflict eachother rm -rf "${pkgdir}$(python -c 'import site; print(site.getsitepackages()[0])')/tests" - # TODO: remove this junk when ver 9 gets out of rc since it has a param data_files to chose the path - mkdir -p "${pkgdir}${_shared_dir}" - mv "${pkgdir}/usr/"{alembic,alembic.ini} "${pkgdir}/${_shared_dir}" + # TODO: remove this when ver 9 gets out of rc since it installs the example config to the data dir properly mv "${pkgdir}$(python -c 'import site; print(site.getsitepackages()[0])')/${pkgname//-/_}/example-config.yaml" "${pkgdir}${_shared_dir}" # adjust alembic script dir location so that by using an abs path it can be used in CWD |