blob: 04b8eeb7af98ce11c7c8c9880f6e2c29a2360143 (
plain)
1 # Description: Library to ease porting C extensions to Python 3
2 # URL: https://py3c.readthedocs.org/
3 # Maintainer: John Vogel, jvogel4 at stny dot rr dot com
4 # Depends on: python3-setuptools
5
6 name=python3-py3c
7 version=1.3
8 release=1
9 source=(https://github.com/encukou/${name#*-}/archive/v$version/${name#*-}-$version.tar.gz)
10
11 build() {
12 cd ${name#*-}-$version
13
14 sed -i 's,install: py3c.pc,install:,' Makefile
15
16 /usr/bin/python3 setup.py build
17 make prefix=/usr py3c.pc
18 make prefix=$PKG/usr install
19 /usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
20
21 #rm -r $PKG/usr/include/python*
22
23 # fix permissions
24 chmod -R go-w $PKG/*
25 }
|