setuptools meson fix
This commit is contained in:
1 parent
ed710863e7
commit
f4dea058dc
2 files changed
+29
No files matched your search
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='setuptools'
|
||||||
|
release='1'
|
||||||
|
version='65.6.3'
|
||||||
|
url='https://pypi.org/project/setuptools/'
|
||||||
|
description='Easily download, build, install, upgrade, and uninstall Python packages'
|
||||||
|
email='aliriza.keskin@pardus.org.tr'
|
||||||
|
maintainer='aliriza'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://files.pythonhosted.org/packages/b6/21/cb9a8d0b2c8597c83fce8e9c02884bce3d4951e41e807fc35791c6b23d9a/setuptools-$version.tar.gz")
|
||||||
|
depends=(python)
|
||||||
|
makedepends=( )
|
||||||
|
md5sums=('1fd8bd04b0bed95ad6c81f03b1c080bc')
|
||||||
|
uses=()
|
||||||
|
group=(dev.python)
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd $name-$version
|
||||||
|
|
||||||
|
build(){
|
||||||
|
python3 setup.py build
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
python3 setup.py install --root="${DESTDIR}" --optimize=1 --skip-build
|
||||||
|
mv ${DESTDIR}/usr/lib{,64}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -30,5 +30,6 @@ package(){
|
|||||||
install -Dt "${DESTDIR}/usr/share/zsh/site-functions" -m644 data/shell-completions/zsh/*
|
install -Dt "${DESTDIR}/usr/share/zsh/site-functions" -m644 data/shell-completions/zsh/*
|
||||||
# fix hardcoded interpreter location
|
# fix hardcoded interpreter location
|
||||||
sed -i "1s|.*|#!/usr/bin/env python3|g" "${DESTDIR}/usr/bin/meson"
|
sed -i "1s|.*|#!/usr/bin/env python3|g" "${DESTDIR}/usr/bin/meson"
|
||||||
|
mv ${DESTDIR}/usr/lib{,64}
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user