-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
25 changed files
with
362 additions
and
262 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
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 | ||
} | ||
|
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,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 | ||
} | ||
|
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,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 | ||
} | ||
|
Oops, something went wrong.