Skip to content

Commit

Permalink
python-gnureadline: version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Dec 27, 2024
1 parent 9c459ad commit 41560b2
Showing 1 changed file with 23 additions and 30 deletions.
53 changes: 23 additions & 30 deletions packages/python-gnureadline/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,47 +1,40 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgbase=python-gnureadline
pkgname=('python2-gnureadline' 'python-gnureadline')
_pkgname=gnureadline
pkgver=8.2.10
pkgrel=2
pkgname=python-gnureadline
_pkgname=${pkgname#python-}
pkgver=8.2.13
pkgrel=1
pkgdesc='The standard Python readline extension statically linked against the GNU readline library.'
arch=('any')
url='https://pypi.org/project/gnureadline/#files'
license=('GPL3')
makedepends=('fakeroot' 'gcc' 'make' 'patch'
'python2-setuptools' 'python-setuptools')
depends=('python')
makedepends=('python-build' 'python-pip')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2138d98576a3c7eb8591c164e58807bfafabd97d1b1d64b3c9de80283f89e3d3d0bde8cd715ee9fe1dcd3918e3897b67300a9f65e0297b45b37ae4e9405ef765')

prepare() {
cp -a "$_pkgname-$pkgver"{,-2}
}
sha512sums=('fb9473f116287f667c399735cb5a30ea149007db9d2e76a4badd97f5c98eae59cf497aaed9c94ffc8a498eca2ab5f0a53e4b45fa80229fc972f0b23159e64698')

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

python2 setup.py build

cd "$srcdir/$_pkgname-$pkgver"

python setup.py build
}

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

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

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

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

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
}

0 comments on commit 41560b2

Please sign in to comment.