summaryrefslogtreecommitdiff
path: root/pcr/python-markups/PKGBUILD
blob: d8a2c4674a1b1f940cabcc239dc980c59ddf5089 (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
31
32
33
34
35
# Maintainer (Arch): Thomas Weißschuh <thomas t-8ch de>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgbase=python-markups
pkgname=(python-markups python2-markups)
pkgver=0.6.1
pkgrel=1
_libname=Markups
pkgdesc='Wrapper around various text markups'
url='http://launchpad.net/python-markups'
depends=('python')
makedepends=('python-setuptools' 'python2-setuptools')
license=('BSD3')
arch=('any')
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)

package_python-markups() {
    depends=('python')
    optdepends=('python-markdown: markdown support'
                'python-docutils: reST support')

    cd "$srcdir/$_libname-$pkgver"
    python setup.py install --root="$pkgdir"
}

package_python2-markups() {
    depends=('python2')
    optdepends=('python2-markdown: markdown support'
                'python2-docutils: reST support')

    cd "$srcdir/$_libname-$pkgver"
    python2 setup.py install --root="$pkgdir"
}

sha256sums=('1f3d6f7b85ac9ddcb936b8b2b6fa15a42ddc9dfc22a075d83d9160b5d59f6d84')