community/shedskin to 0.9.4-1

This commit is contained in:
Kevin Mihelich 2013-06-21 20:09:39 +00:00
parent ee5bbb2bf4
commit 3bb9d1e620
2 changed files with 11 additions and 14 deletions

View file

@ -6,30 +6,30 @@
# - change from being an 'any' package to architecture-specific # - change from being an 'any' package to architecture-specific
pkgname=shedskin pkgname=shedskin
pkgver=0.9.3 pkgver=0.9.4
pkgrel=1.1 pkgrel=1
pkgdesc='Python to C++ compiler' pkgdesc='Python to C++ compiler'
arch=('arm' 'armv6h' 'armv7h') arch=('arm' 'armv6h' 'armv7h')
url='http://code.google.com/p/shedskin/' url='http://code.google.com/p/shedskin/'
license=('GPL2') license=('GPL2')
depends=('pcre' 'gc' 'python2') depends=('pcre' 'gc' 'python2')
conflicts=('shedskin-svn') source=("http://shedskin.googlecode.com/files/$pkgname-$pkgver.tgz")
source=("http://shedskin.googlecode.com/files/$pkgname-$pkgver.tgz" sha256sums=('81fc79660b94c5c566ffb07ccc42db2ace99f23fd867e00ccf48bdc0dfcffc5b')
"$pkgname.py")
sha256sums=('cd81f5af25a5937ecca139ab2877d80fbc29020d34c97e65d0590b993f11918d'
'26527327dba7d6a34c37a931bfce925d7802535626a92f35a2890d698325c712')
package() { prepare() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
[[ $CARCH == "arm" ]] && sed -i 's/-march=native/-march=armv5te/' shedskin/FLAGS [[ $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 == "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 [[ $CARCH == "armv7h" ]] && sed -i 's/-march=native/-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard/' shedskin/FLAGS
install -d "$pkgdir/usr/bin" sed -i 's:/bin/python2:/usr/bin/python2:' "scripts/$pkgname"
install -Dm755 "../$pkgname.py" "$pkgdir/usr/bin/$pkgname" }
package() {
cd "$srcdir/$pkgname-$pkgver"
python2 setup.py install --prefix="$pkgdir/usr" python2 setup.py install --prefix="$pkgdir/usr"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
} }
# vim:set ts=2 sw=2 et: # vim:set ts=2 sw=2 et:

View file

@ -1,3 +0,0 @@
#!/usr/bin/python2
import shedskin
shedskin.main()