blob: 318f4e7ef95e3abeba4f88d0c6fe183e553f02a8 (
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
28
29
30
|
# Contributor: Joe Bashe <joe@bashe.joe>
_name=twisted
pkgname=python2-twisted-git
pkgver=20.3.0
pkgrel=5
pkgdesc='An open source network framework written entirely in Python.'
arch=('any')
url="https://github.com/twisted/twisted"
license=('GPL2')
depends=('python2')
makedepends=('python2-setuptools')
conflicts=('python-twisted' 'python2-twisted')
source=("https://github.com/twisted/twisted/archive/refs/tags/twisted-$pkgver.tar.gz")
sha256sums=('64173c6a561b206bea4193f810ff6f26b549b34e3b581a34eba499669c798427')
build() {
cd "${_name}-${_name}-${pkgver}"
python2 setup.py build
}
package() {
cd "${_name}-${_name}-${pkgver}"
python2 setup.py install --skip-build \
--optimize=1 \
--prefix=/usr \
--root="${pkgdir}"
install -vDm 644 {NEWS.rst,README.rst} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
}
|