comparison templates/python-hybrid.sh @ 252:9e95fda0e5c6

vanilla: fix many packages Also add templates/python-hybrid.sh and update template/python.sh
author David Demelier <markand@malikania.fr>
date Thu, 21 Mar 2019 20:00:00 +0100
parents
children
comparison
equal deleted inserted replaced
251:da8439572c16 252:9e95fda0e5c6
1 #!/bin/sh
2 #
3 # Copyright (c) 2019 FirstName LastName <mailaddress>
4 #
5 # 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 # copyright notice and this permission notice appear in all copies.
8 #
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # 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 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #
17
18 PKGNAME=name
19 PKGVERSION=1.0.0
20 PKGREVISION=1
21 PKGLICENSE="one of README.licenses.md or CUSTOM"
22 PKGSUMMARY="short summary"
23 PKGDOWNLOAD="http://example.org/$PKGNAME-$PKGVERSION.tar.xz"
24 PKGDEPENDS="python/python python/py-setuptools"
25 # PKGOPTIONS="FOO BAR BAZ"
26
27 build()
28 {
29 for py in python python2; do
30 rm -rf $PKGNAME-$PKGVERSION
31 tar xvaf $PKGNAME-$PKGVERSION.tar.gz
32 pushd $PKGNAME-$PKGVERSION
33
34 $py setup.py build
35 $py setup.py install --root=${DESTDIR:-/} -O1
36
37 popd
38 rm -rf $PKGNAME-$PKGVERSION
39 done
40 }