mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
added community/shedskin
This commit is contained in:
parent
f09f227e75
commit
b9b6d0175c
2 changed files with 38 additions and 0 deletions
35
community/shedskin/PKGBUILD
Normal file
35
community/shedskin/PKGBUILD
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# $Id: PKGBUILD 82726 2013-01-23 15:21:35Z arodseth $
|
||||||
|
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
|
||||||
|
|
||||||
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
|
# - fix flags for ARM architectures
|
||||||
|
# - change from being an 'any' package to architecture-specific
|
||||||
|
|
||||||
|
pkgname=shedskin
|
||||||
|
pkgver=0.9.3
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='Python to C++ compiler'
|
||||||
|
arch=('arm' 'armv6h' 'armv7h')
|
||||||
|
url='http://code.google.com/p/shedskin/'
|
||||||
|
license=('GPL2')
|
||||||
|
depends=('pcre' 'gc' 'python2')
|
||||||
|
conflicts=('shedskin-svn')
|
||||||
|
source=("http://shedskin.googlecode.com/files/$pkgname-$pkgver.tgz"
|
||||||
|
"$pkgname.py")
|
||||||
|
sha256sums=('cd81f5af25a5937ecca139ab2877d80fbc29020d34c97e65d0590b993f11918d'
|
||||||
|
'26527327dba7d6a34c37a931bfce925d7802535626a92f35a2890d698325c712')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
|
[[ $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
|
||||||
|
|
||||||
|
install -d "$pkgdir/usr/bin"
|
||||||
|
install -Dm755 "../$pkgname.py" "$pkgdir/usr/bin/$pkgname"
|
||||||
|
python2 setup.py install --prefix="$pkgdir/usr"
|
||||||
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 et:
|
3
community/shedskin/shedskin.py
Normal file
3
community/shedskin/shedskin.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/python2
|
||||||
|
import shedskin
|
||||||
|
shedskin.main()
|
Loading…
Reference in a new issue