mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/shedskin to 0.9.4-2
This commit is contained in:
parent
1b117a2e38
commit
0ba4a95b35
1 changed files with 12 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
# $Id: PKGBUILD 82726 2013-01-23 15:21:35Z arodseth $
|
||||
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
|
||||
# $Id$
|
||||
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - fix flags for ARM architectures
|
||||
|
@ -7,29 +7,28 @@
|
|||
|
||||
pkgname=shedskin
|
||||
pkgver=0.9.4
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='Python to C++ compiler'
|
||||
arch=('arm' 'armv6h' 'armv7h')
|
||||
url='http://code.google.com/p/shedskin/'
|
||||
arch=('arm' 'armv6h' 'armv7h' 'aarch64')
|
||||
url='https://shedskin.github.io/'
|
||||
license=('GPL2')
|
||||
depends=('pcre' 'gc' 'python2')
|
||||
source=("http://shedskin.googlecode.com/files/$pkgname-$pkgver.tgz")
|
||||
sha256sums=('81fc79660b94c5c566ffb07ccc42db2ace99f23fd867e00ccf48bdc0dfcffc5b')
|
||||
makedepends=('git')
|
||||
source=("git+https://github.com/shedskin/shedskin.git#tag=v$pkgver")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
sed -i 's:bin/python:usr/bin/python:' "$pkgname/scripts/$pkgname"
|
||||
[[ $CARCH == "arm" ]] && sed -i 's/-march=native/-march=armv5te/' shedskin/FLAGS
|
||||
[[ $CARCH == "armv6h" ]] && sed -i 's/-march=native/-march=armv6 -mfloat-abi=hard -mfpu=vfp/' shedskin/FLAGS
|
||||
[[ $CARCH == "armv7h" ]] && sed -i 's/-march=native/-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard/' shedskin/FLAGS
|
||||
|
||||
sed -i 's:/bin/python2:/usr/bin/python2:' "scripts/$pkgname"
|
||||
[[ $CARCH == "aarch64" ]] && sed -i 's/-march=native/-march=armv8-a/' shedskin/FLAGS
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
cd "$pkgname"
|
||||
|
||||
python2 setup.py install --prefix="$pkgdir/usr"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
# vim: ts=2 sw=2 et:
|
||||
|
|
Loading…
Reference in a new issue