Skip to content

Commit

Permalink
multiple: package fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Sep 1, 2023
1 parent d6e8faf commit 5d5de7e
Show file tree
Hide file tree
Showing 25 changed files with 362 additions and 262 deletions.
49 changes: 20 additions & 29 deletions packages/python-msoffcrypto-tool/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,48 +1,39 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgbase=python-msoffcrypto-tool
pkgname=('python2-msoffcrypto-tool' 'python-msoffcrypto-tool')
_pkgname=msoffcrypto-tool
pkgname=python-msoffcrypto-tool
_pkgname=msoffcrypto_tool
pkgver=5.1.1
pkgrel=2
pkgrel=1
pkgdesc='A Python tool and library for decrypting MS Office files with passwords or other keys.'
arch=('any')
url='https://pypi.org/project/msoffcrypto-tool/#files'
license=('MIT')
makedepends=('python2-setuptools' 'python-setuptools')
depends=('python' 'python-cryptography' 'python-olefile')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('840b916cae8ddcf264070b952450ccf1948e84418bf674d527a29273a5b25a556db97d69a86bbaf10f685669fba388b933870bd972cb6c1b2e7b101fc53e2e20')

prepare() {
cp -a "$_pkgname-$pkgver"{,-2}
}

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

python2 setup.py build

cd "$srcdir/$_pkgname-$pkgver"

python setup.py build
}

package_python2-msoffcrypto-tool() {
depends=('python2' 'python2-olefile' 'python2-cryptography')

cd "$_pkgname-$pkgver-2"

python2 setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
cd "$_pkgname-$pkgver"

mv "$pkgdir/usr/bin/$_pkgname" "$pkgdir/usr/bin/${_pkgname}-2"
python -m build --wheel --outdir="$startdir/dist"
}

package_python-msoffcrypto-tool() {
depends=('python' 'python-olefile' 'python-cryptography')

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

python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
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
}

25 changes: 18 additions & 7 deletions packages/python-names/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,39 @@
# See COPYING for license details.

pkgname=python-names
_pkgname=names
pkgver=0.3.0
pkgrel=7
pkgrel=6
epoch=1
pkgdesc='Random name generator.'
arch=('any')
url='https://pypi.org/project/names/#files'
license=('MIT')
depends=('python')
makedepends=('python' 'python-setuptools')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/names-$pkgver.tar.gz")
sha512sums=('cdc65b688b82be00f2b40fc4276bed6980d8cf2868976ef604c9776de7dc541f715dfd4c8905a031611515e504b6d13fd0a6c95c5c1f69ab16ed3bf26a360d83')

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

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

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

python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
--skip-build
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
}

19 changes: 15 additions & 4 deletions packages/python-normality/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,37 @@ pkgname=python-normality
_pkgname=normality
_pyver=3.11
pkgver=2.4.0
pkgrel=4
pkgrel=1
pkgdesc='Micro-library to normalize text strings.'
arch=('any')
url='https://pypi.org/project/normality/#files'
license=('MIT')
depends=('python' 'python-six' 'python-chardet' 'python-pyicu' 'python-banal')
makedepends=('python-setuptools')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('025dc03fac23549cbb4287833d6ce13bf3a7a3d6d4a3407315c67c440e91e00f19390588fb85953e099efc3c8fc1039140680388e38edfd7a52cdd3644c8c689')

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

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

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

python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
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

rm -rf "$pkgdir/usr/lib/python$_pyver/site-packages/tests"
}
Expand Down
46 changes: 21 additions & 25 deletions packages/python-optparse-pretty/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,43 +1,39 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgbase=python-optparse-pretty
pkgname=('python2-optparse-pretty' 'python-optparse-pretty')
pkgname=python-optparse-pretty
_pkgname=optparse-pretty
pkgver=0.1.1
pkgrel=6
pkgdesc='A more compact help formatter for optparse.'
arch=('any')
url='https://pypi.org/project/optparse-pretty/#files'
license=('BSD')
makedepends=('python2-setuptools' 'python-setuptools')
depends=('python')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/optparse-pretty-$pkgver.tar.gz")
sha512sums=('2342109e9e258842803d2e6d3e8ad0a4082bd9bec9260ce4049328c0f0326cd79dc256e19765a91bf6d62cefcb3891b43682ef7fcbe928b4457bb6d7f5436cbe')

prepare() {
cp -a "optparse-pretty-$pkgver" "optparse-pretty2-$pkgver"
}

build() {
cd "optparse-pretty2-$pkgver"

python2 setup.py build

cd "$srcdir/optparse-pretty-$pkgver"
cd "$_pkgname-$pkgver"

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

package_python2-optparse-pretty() {
cd "optparse-pretty2-$pkgver"

python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
--skip-build
}

package_python-optparse-pretty() {
cd "optparse-pretty-$pkgver"

python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
--skip-build
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
}

23 changes: 17 additions & 6 deletions packages/python-pathlib/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,39 @@
pkgname=python-pathlib
_pkgname=pathlib
pkgver=1.0.1
pkgrel=4
_pyver=3.11
pkgrel=3
pkgdesc='Python library that offers a set of classes to handle filesystem paths.'
arch=('any')
url='https://pypi.org/project/pathlib/'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('d85e45dfcc85ce75a7e7b609163dc8c75c688f279c1833510185f280af5501e473376dc09bddc6a804d1fcc3177a939db85af37b7b8d5b183b9bc2b85b3b0f8b')
_pyver='3.9'

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

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

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

python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
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

rm -rf "$pkgdir/usr/lib/python${_pyver}/site-packages/__pycache__"
rm -rf "$pkgdir/usr/lib/python$_pyver/site-packages/__pycache__"
}

19 changes: 15 additions & 4 deletions packages/python-pika/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,36 @@
pkgname=python-pika
_pkgname=pika
pkgver=1.3.2
pkgrel=2
pkgrel=1
pkgdesc='Pika Python AMQP Client Library.'
arch=('any')
url='https://pypi.org/project/pika/#files'
license=('BSD')
depends=('python')
makedepends=('python-setuptools' 'python-pip' 'python-wheel')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('802eae5a3c11d2b5ec6f921809c2c68d7438a0b3ceda2619ea9f328737564aa017bc57f4304415d7f0febd4a3bfb64dde723871462a33c713e91b60476165f85')

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

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

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

python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
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
}

45 changes: 18 additions & 27 deletions packages/python-property/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,47 +1,38 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgbase=python-property
pkgname=('python2-property' 'python-property')
pkgname=python-property
_pkgname=property
pkgver=2.6.2
pkgrel=3
pkgrel=1
pkgdesc='A python module to read a property file.'
arch=('any')
url='https://pypi.org/project/property/#files'
license=('custom:unknown')
makedepends=('python2-setuptools' 'python-setuptools' 'python2-pip' 'python-pip'
'python2-wheel' 'python-wheel')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('0eed7208a60f7c76ca412e7582584f99566b597e9dfe2ef1245a30e3f7f401c7fc42ecd8b0d85e2033c0b4172de30a20b9f03e37aa7e87d32ee95951489cc82a')

prepare() {
cp -a "$_pkgname-$pkgver"{,-2}
}

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

python2 setup.py build

cd "$srcdir/$_pkgname-$pkgver"

python setup.py build
}

package_python2-property() {
depends=('python2')

cd "$_pkgname-$pkgver-2"
cd "$_pkgname-$pkgver"

python2 setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
python -m build --wheel --outdir="$startdir/dist"
}

package_python-property() {
depends=('python')

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

python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
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
}

Loading

0 comments on commit 5d5de7e

Please sign in to comment.