blob: da0730d3f410fad3b44642efd11fa4fd5625eab5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
_name=pypi2pkgbuild
pkgname=python-$_name
pkgver=0.3
pkgrel=1
pkgdesc="Convert PyPI packages to Arch Linux packages"
arch=('any')
url="https://github.com/anntzer/pypi2pkgbuild"
license=('MIT')
depends=(
'namcap'
'pkgfile'
'python-pip'
'python-wheel'
)
makedepends=('python-setuptools-scm')
conflicts=('python-pypi2pkgbuild-git')
source+=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('eae7aa06c2a05175d5e6a37b91fc07d728a3d788c210af9028ecffb18b69fcdd')
package() {
cd "$srcdir/$_name-$pkgver"
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
python setup.py install --optimize=1 --root="$pkgdir"
}
|