Skip to content

Commit

Permalink
add pyinstaller-hooks-contrib (#4438)
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj authored Jan 4, 2025
1 parent 1aee373 commit 2dcfe91
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/pyinstaller-hooks-contrib/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=pyinstaller-hooks-contrib
_pkgname=pyinstaller_hooks_contrib
pkgver=2024.11
pkgrel=1
pkgdesc='PyInstaller community hooks.'
arch=('any')
groups=('blackarch' 'blackarch-misc')
url='https://github.com/pyinstaller/pyinstaller-hooks-contrib'
license=('custom:mixed')
depends=('python')
makedepends=('python-build' 'python-pip')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('f0f6c5cfe92c17cb66b9eee0e7cd7b25749b9b555967b9cacfca90e99beb13e53a2c52cf8619271c5f15e587f993fd2d11765dce1c940f4cdefa1a23de20d72d')

build() {
cd "$_pkgname-$pkgver"

python -m build --wheel --outdir="$startdir/dist"
}

package() {
cd "$_pkgname-$pkgver"

pip install \
--verbose \
--disable-pip-version-check \
--no-warn-script-location \
--ignore-installed \
--no-compile \
--no-deps \
--root="$pkgdir" \
--prefix=/usr \
--no-index \
--find-links="file://$startdir/dist" \
$pkgname
}

0 comments on commit 2dcfe91

Please sign in to comment.