comparison python/py-commonmark/py-commonmark.sh @ 143:329cad4dc6b0

python: merge .sh and .info
author David Demelier <markand@malikania.fr>
date Mon, 11 Mar 2019 20:20:00 +0100
parents ae82a59a4fe0
children 25cecc6dca48
comparison
equal deleted inserted replaced
142:c3e9685afe86 143:329cad4dc6b0
1 #!/bin/sh 1 #!/bin/sh
2 # 2 #
3 # Copyright (c) 2019 Stéphane Péquignot <contact@stephanepequignot.fr> 3 # Copyright (c) 2019 Stéphane Péquignot <contact@stephanepequignot.fr>
4 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
4 # 5 #
5 # Permission to use, copy, modify, and/or distribute this software for any 6 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above 7 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies. 8 # copyright notice and this permission notice appear in all copies.
8 # 9 #
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 # 17 #
17 18
18 source ./py-commonmark.info 19 PKGNAME=py-commonmark
20 PKGVERSION=0.8.0
21 PKGREVISION=1
22 PKGLICENSE="BSD3CLAUSE"
23 PKGSUMMARY="Python parser for the CommonMark Markdown spec"
24 PKGDOWNLOAD="https://github.com/rtfd/CommonMark-py/archive/$PKGVERSION.tar.gz"
25 PKGDEPENDS="python/python"
19 26
20 set -e 27 build()
28 {
29 rm -rf CommonMark-py-$PKGVERSION
30 tar xvaf $PKGVERSION.tar.gz
31 pushd CommonMark-py-$PKGVERSION
21 32
22 rm -rf CommonMark-py-$PKGVERSION 33 python setup.py install --root=${DESTDIR:-/} -O1
23 tar xvaf $PKGVERSION.tar.gz
24 pushd CommonMark-py-$PKGVERSION
25 34
26 python setup.py install --root=${DESTDIR:-/} -O1 35 popd
27 36 rm -rf CommonMark-py-$PKGVERSION
28 popd 37 }
29 rm -rf CommonMark-py-$PKGVERSION