blob: 22da5d7c02ea7b7a3aebbc1b9d7105f5e97570ff (
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
26
27
|
# Maintainer: Danilo J. S. Bellini <danilo dot bellini at gmail dot com>
# Contributor: Felix Yan <felixonmars@archlinux.org>
pkgname=python2-importlib-metadata
_name=importlib_metadata
pkgver=2.1.3
pkgrel=2
pkgdesc='Read metadata from Python packages'
arch=('any')
url='https://github.com/python/importlib_metadata'
license=('Apache')
depends=('python2-zipp' 'python2-pathlib2' 'python2-contextlib2'
'python2-configparser')
makedepends=('python2-setuptools-scm')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('85866f546ea983b94ab6a41e5cba67829b8bd97551883f93b4fa87331ce9a256')
build() {
cd "$srcdir/$_name-$pkgver"
SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python2 setup.py build
}
package() {
cd "$srcdir/$_name-$pkgver"
SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" \
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}
|