mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
47 lines
1.1 KiB
Text
47 lines
1.1 KiB
Text
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Maintainer:
|
|
pkgname=py-argcomplete
|
|
_pkgname=${pkgname#py-}
|
|
pkgver=1.9.3
|
|
pkgrel=0
|
|
pkgdesc="Easy, extensible command line tab completion of arguments for your Python script"
|
|
url="https://github.com/kislyuk/argcomplete"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends=""
|
|
makedepends="python2-dev python3-dev py-setuptools"
|
|
install=""
|
|
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/kislyuk/$_pkgname/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python2 setup.py build
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
_py() {
|
|
local python="$1"
|
|
pkgdesc="$pkgdesc (for $python)"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
|
|
cd "$builddir"
|
|
$python setup.py install --prefix=/usr \
|
|
--root="$subpkgdir" --optimize=1
|
|
}
|
|
|
|
_py2() {
|
|
replaces="$pkgname"
|
|
_py python2
|
|
}
|
|
|
|
_py3() {
|
|
_py python3
|
|
}
|
|
|
|
sha512sums="6f793b1f34df171478af2c477b5ddeff3f44a4c08d1a9205cff19fcc97e65d19a39ddd5c1d7653a70c738507ee1fb5603c437e16e64b3943a87247426bd270b6 py-argcomplete-1.9.3.tar.gz"
|