archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-selectors2 / trunk / PKGBUILD
bloba6c9dd0a1f7c3f814555d2e26620e16061909177
1 # Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
2 # Contributor: Anthony25 <Anthony Ruhier>
4 pkgname=python-selectors2
5 pkgver=2.0.2
6 pkgrel=6
7 arch=('any')
8 pkgdesc='Backported, durable, and portable selectors.'
9 url='https://github.com/SethMichaelLarson/selectors2'
10 license=('MIT')
11 makedepends=('python-setuptools')
12 source=($pkgname-$pkgver.tar.gz::https://github.com/SethMichaelLarson/selectors2/archive/$pkgver.tar.gz
13         python310.patch)
14 sha256sums=('43e80168bec134ada813d4126b8eac071450bad8ec1bbdd91ec6481050dbc87e'
15             '3a05a9b4c9b5a48db0c3c9d961badcb0fe7466f3f0fb12063e8ebc53be9a8041')
17 prepare() {
18   cd "${srcdir}"/selectors2-$pkgver
19   patch -Np1 -i ../python310.patch
22 package() {
23   cd "${srcdir}"/selectors2-$pkgver
25   python setup.py install --root="${pkgdir}" --optimize=1
26   install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE