-
-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
399 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
|
Oops, something went wrong.