python-pygments: Inform the user about binary renaming.
This commit is contained in:
@@ -11,7 +11,7 @@ license="BSD"
|
||||
makedepends=("python2-setuptools" "python3-setuptools")
|
||||
source=("https://pypi.python.org/packages/source/P/Pygments/Pygments-${pkgver}.tar.gz")
|
||||
noextract=("Pygments-${pkgver}.tar.gz")
|
||||
sha1sums=('fe2c8178a039b6820a7a86b2132a2626df99c7f8')
|
||||
sha1sums=("fe2c8178a039b6820a7a86b2132a2626df99c7f8")
|
||||
|
||||
prepare () {
|
||||
# workaround for symlink issue
|
||||
@@ -21,11 +21,11 @@ prepare () {
|
||||
|
||||
package_python2-pygments () {
|
||||
depends=("python2")
|
||||
install="python2-pygments.install"
|
||||
|
||||
cd "Pygments-${pkgver}"
|
||||
python2 setup.py install --root="${pkgdir}" -O1
|
||||
|
||||
mv "${pkgdir}"/usr/bin/pygmentize "${pkgdir}"/usr/bin/pygmentize2
|
||||
mv "${pkgdir}/usr/bin/pygmentize" "${pkgdir}/usr/bin/pygmentize2"
|
||||
install -Dm644 external/pygments.bashcomp "${pkgdir}/usr/share/bash-completion/completions/pygmentize2"
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
7
python-pygments/python2-pygments.install
Normal file
7
python-pygments/python2-pygments.install
Normal file
@@ -0,0 +1,7 @@
|
||||
post_install() {
|
||||
echo "pygmentize has been renamed to pygmentize2"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install "$1"
|
||||
}
|
||||
Reference in New Issue
Block a user