archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-curtsies / trunk / PKGBUILD
blob7d92a3715b5a4ffeb4fc9ec5dc2c82eba406ed49
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
3 pkgname=python-curtsies
4 _pkgname=curtsies
5 pkgver=0.4.1
6 pkgrel=2
7 pkgdesc="Curses-like terminal wrapper with a display based on compositing 2d arrays of text"
8 arch=('any')
9 url="https://pypi.python.org/pypi/curtsies"
10 license=('MIT')
11 depends=('python-blessed' 'python-cwcwidth')
12 makedepends=('python-setuptools')
13 source=("https://files.pythonhosted.org/packages/source/c/curtsies/curtsies-$pkgver.tar.gz")
14 sha256sums=('62d10f349c553845306556a7f2663ce96b098d8c5bbc40daec7a6eedde1622b0')
16 prepare() {
17   # 0.3.0 bug?
18   cd "$srcdir/curtsies-$pkgver"
19   sed -i 's/^.*typing.*$//' curtsies.egg-info/requires.txt setup.py
22 build() {
23   cd "$srcdir/curtsies-$pkgver"
24   python3 setup.py build
27 package() {
28   cd "$srcdir/curtsies-$pkgver"
29   python3 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0
30   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python-curtsies/LICENSE"