fix packages
This commit is contained in:
1 parent
0e435fcea4
commit
dcb778f230
3 files changed
+50
-2
No files matched your search
@@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='py3-build'
|
||||||
|
release='1'
|
||||||
|
version='0.10.0'
|
||||||
|
url='https://github.com/pypa/build/'
|
||||||
|
description='Easily download, build, install, upgrade, and uninstall Python packages'
|
||||||
|
email='aliriza.keskin@pardus.org.tr'
|
||||||
|
maintainer='aliriza'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://github.com/pypa/build/archive/refs/tags/$version.tar.gz")
|
||||||
|
depends=(python py3-wheel)
|
||||||
|
makedepends=( )
|
||||||
|
md5sums=('1b219467065a5ac8fad9546c93a6332f')
|
||||||
|
uses=()
|
||||||
|
group=(dev.python)
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd build-$version
|
||||||
|
|
||||||
|
package(){
|
||||||
|
mkdir -p $DESTDIR/usr/lib64/python3/build
|
||||||
|
cp -prfv src/build/* $DESTDIR/usr/lib64/python3/build
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='py3-installer'
|
||||||
|
release='1'
|
||||||
|
version='0.7.0'
|
||||||
|
url='https://github.com/pypa/installer/'
|
||||||
|
description='Easily download, build, install, upgrade, and uninstall Python packages'
|
||||||
|
email='aliriza.keskin@pardus.org.tr'
|
||||||
|
maintainer='aliriza'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://github.com/pypa/installer/archive/refs/tags/$version.tar.gz")
|
||||||
|
depends=(python py3-build)
|
||||||
|
makedepends=( )
|
||||||
|
md5sums=('fcfbaa5603d3e68adbaa8392963cd895')
|
||||||
|
uses=()
|
||||||
|
group=(dev.python)
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd installer-$version
|
||||||
|
|
||||||
|
package(){
|
||||||
|
mkdir -p $DESTDIR/usr/lib64/python3/installer
|
||||||
|
cp -prfv src/installer/* $DESTDIR/usr/lib64/python3/installer
|
||||||
|
}
|
||||||
|
|
||||||
@@ -18,11 +18,11 @@ arch=('x86_64')
|
|||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
|
||||||
build(){
|
build(){
|
||||||
python setup.py build
|
python -m build --wheel --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
package(){
|
package(){
|
||||||
python setup.py install --root="${DESTDIR}" --install-lib=/usr/lib64/python3 --optimize=1 --skip-build
|
python -m installer --destdir="$DESTDIR" dist/*.whl
|
||||||
install -d "${DESTDIR}/usr/share/vim/vimfiles"
|
install -d "${DESTDIR}/usr/share/vim/vimfiles"
|
||||||
cp -rt "${DESTDIR}/usr/share/vim/vimfiles" data/syntax-highlighting/vim/*/
|
cp -rt "${DESTDIR}/usr/share/vim/vimfiles" data/syntax-highlighting/vim/*/
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user