Wheel is a Python library that is the reference implementation of the Python wheel packaging standard.
Create the PKGBUILD for the Wheel package with the following commands:
mkdir /sources/wheel
cd /sources/wheel
cat > PKGBUILD << "REALEOF"
# Maintainer: Linux From Scratch <lfs-dev@lists.linuxfromscratch.org>
pkgname="wheel"
pkgver="0.45.1"
pkgrel="1"
pkgdesc="The wheel module is the reference implementation of the Python wheel packaging standard."
arch=('any')
url="https://pypi.org/project/wheel/"
license=('custom'
'MIT')
groups=('core')
depends=('python')
makedepends=('flit-core')
source=('https://pypi.org/packages/source/w/wheel/wheel-0.45.1.tar.gz')
md5sums=('dddc505d0573d03576c7c6c5a4fe0641')
build(){
cd "${pkgname}-${pkgver}"
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
}
package(){
cd "${pkgname}-${pkgver}"
pip3 install --root "${pkgdir}" --no-index --find-links dist wheel
}
REALEOF
Prepare the build directory for the pacman user and build the package:
chown -R root:pacman . chmod 2775 . chmod 664 PKGBUILD su pacman -c 'makepkg -L --nodeps'
Add the newly created package to the central package repository:
cp wheel-0.45.1-1-any.pkg.tar.xz \
/srv/pacman/repos/LFS/
repo-add /srv/pacman/repos/LFS/LFS.db.tar.xz \
/srv/pacman/repos/LFS/wheel-0.45.1-1-any.pkg.tar.xz
Update the local cache and install the Wheel package:
pacman -Syu pacman -S wheel --overwrite \* -dd --noconfirm
Finally, copy the source files into the source repository and clean up the build directory:
mkdir /srv/pacman/source/LFS/wheel cp PKGBUILD /srv/pacman/source/LFS/wheel cd /sources rm -rf wheel