Skip to content

Commit

Permalink
multiple: fix installs.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Aug 31, 2023
1 parent ec895aa commit cd43e2b
Show file tree
Hide file tree
Showing 28 changed files with 399 additions and 331 deletions.
4 changes: 2 additions & 2 deletions packages/buster/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license=('GPL3')
depends=('python' 'python-requests' 'python-beautifulsoup4' 'python-yaml'
'python-lxml' 'python-grequests' 'python-gevent' 'twint' 'cython'
'python-dataclasses' 'python-certifi')
makedepends=('git' 'python-setuptools')
makedepends=('git' 'python-setuptools' 'python-build' 'python-wheel')
source=("git+https://github.com/sham00n/$pkgname.git")
sha512sums=('SKIP')

Expand All @@ -31,7 +31,7 @@ build() {
package() {
cd $pkgname

python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
python setup.py install --root="$pkgdir" --prefix=/src -O1 --skip-build

install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
Expand Down
1 change: 1 addition & 0 deletions packages/frida-tools/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

pkgbase=frida-tools
pkgname=('python2-frida-tools' 'python-frida-tools')
_pkgname=frida-tools
pkgver=11.0.0
pkgrel=2
pkgdesc='Frida CLI tools.'
Expand Down
17 changes: 14 additions & 3 deletions packages/python-aiorun/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pkgname=python-aiorun
_pkgname=aiorun
pkgver=2023.7.2
pkgrel=2
pkgrel=1
pkgdesc='Boilerplate for asyncio applications.'
arch=('any')
url='https://pypi.org/project/aiorun/#files'
Expand All @@ -17,12 +17,23 @@ sha512sums=('fa6bcec2202941c26afd9f04a92ab21ab610067f95011f357d9da3e442fac53d917
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
}

50 changes: 20 additions & 30 deletions packages/python-asciistuff/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,50 +1,40 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgbase=python-asciistuff
pkgname=('python2-asciistuff' 'python-asciistuff')
pkgname=python-asciistuff
_pkgname=asciistuff
pkgver=1.2.5
pkgrel=3
pkgrel=1
pkgdesc='Library for producing ASCII arts from a text or an image.'
arch=('any')
url='https://pypi.org/project/asciistuff/#files'
license=('AGPL3')
makedepends=('python2-setuptools' 'python-setuptools')
depends=('python' 'python-terminaltables' 'python-termcolor' 'python-cowpy'
'python-pyfiglet')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('5e90dc3c4ce69679cdc50eff9ab4028f3a7c641978f9e87d2d0cfed188e58d7747e7bd18550cde3957cf677fc11ea647eee60d62dbe5a6cbb87f25a11587fd85')

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-asciistuff() {
depends=('python2' 'python2-terminaltables' 'python2-termcolor'
'python2-pyfiglet' 'python2-cowpy')

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-asciistuff() {
depends=('python' 'python-terminaltables' 'python-termcolor' 'python-cowpy'
'python-pyfiglet')

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
}

35 changes: 26 additions & 9 deletions packages/python-booby-ng/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,44 @@
# See COPYING for license details.

pkgname=python-booby-ng
_pkgname=booby-ng
pkgver=0.8.4
pkgrel=7
pkgrel=6
pkgdesc='Data modeling and validation Python library.'
url='https://pypi.org/project/booby-ng/#files'
arch=('any')
license=('Apache2')
license=('Apache')
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.python.org/packages/87/5f/011f54140a02509bb23f506c8dd8816dc8e6c162ae82130c94c4c3cd9011/booby-ng-$pkgver.tar.gz")
makedepends=('python-pip' 'python-wheel' 'python-build')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2d512c2e9fb4de56c42a4182a5e74aa790d05bff31270c46880b5b0263128595381ef1c341ccf333e0d0c1ce9b35f3da6b2b3459ad4e1d52cd9913d670aa7ca2')

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

sed -i 's|use_2to3=True,||g' setup.py
}

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

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

package() {
cd "booby-ng-$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
}

12 changes: 5 additions & 7 deletions packages/python-colored/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
pkgbase=python-colored
pkgname=('python2-colored' 'python-colored')
_pkgname=colored
pkgver=2.2.3
pkgrel=2
pkgver=1.4.3
pkgrel=3
pkgdesc='Simple library for color and formatting to terminal.'
arch=('any')
url='https://pypi.org/project/colored/#files'
makedepends=('python2-setuptools' 'python-setuptools')
license=('MIT')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('710bf7383621be9901cee4655af1068fb666329cbd94ca800a9db32d50ae4163b40eecfd81419cfed478d17217b15bfe93b2899e48bdb4dc0b59bb976c4eda77')
sha512sums=('a32c9c382d75ed460e32804e8b8c12d8fb01561029d0b3c207922969eb6f9221b6b2d34c72bbc1171df27f9e5033f79814f551d7e5f741eca690ef361181db5f')

prepare() {
cp -a "$_pkgname-$pkgver"{,-2}
Expand All @@ -34,16 +34,14 @@ package_python2-colored() {

cd "$_pkgname-$pkgver-2"

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

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

cd "$_pkgname-$pkgver"

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

19 changes: 15 additions & 4 deletions packages/python-console-menu/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,36 @@
pkgname=python-console-menu
_pkgname=console-menu
pkgver=0.8.0
pkgrel=3
pkgrel=1
pkgdesc='A simple Python menu-based UI system for terminal applications.'
arch=('any')
url='https://pypi.org/project/console-menu/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('c4dc34a0.8.064f2b83ce67e698b5608854b7301545fb0a2af63ec7f8bb4936b')
sha512sums=('3e2a937bd3c075af5406de451c92d853b53af42f4fb12fa7fe3003d06a1bd84df258091546fef194e997e8a38220a7ca5e67701f16b02fad6d63a6591584f4d1')

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
}

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

pkgbase=python-cowpy
pkgname=('python2-cowpy' 'python-cowpy')
pkgname=python-cowpy
_pkgname=cowpy
pkgver=1.1.5
_pyver=3.11
pkgrel=4
pkgrel=1
pkgdesc='A cowsay clone for python in one file.'
arch=('any')
url='https://pypi.org/project/cowpy/#files'
license=('custom:unknown')
makedepends=('python2-setuptools' 'python-setuptools')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('83d0bba312624642d5e7e6a49a532197e6f76d17361ded76267577dfbf86e5e68b17f4fc95f965c1c5f8029bcfb2ea47e6456dec739b5c71411f81704f245427')

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-cowpy() {
depends=('python2')

cd "$_pkgname-$pkgver-2"

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

for i in "$pkgdir/usr/bin/"* ; do
mv $i "${i}2"
done
cd "$_pkgname-$pkgver"

chmod 644 \
"$pkgdir/usr/lib/python2.7/site-packages/cowpy-1.1.5-py2.7.egg-info/"*
python -m build --wheel --outdir="$startdir/dist"
}

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

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

python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build

chmod 644 \
"$pkgdir/usr/lib/python$_pyver/site-packages/cowpy-1.1.5-py$_pyver.egg-info/"*
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 cd43e2b

Please sign in to comment.