PKGBUILDs/community/shedskin/PKGBUILD

36 lines
1.1 KiB
Bash
Raw Normal View History

2013-05-04 18:35:50 +00:00
# $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
2013-06-21 20:09:39 +00:00
pkgver=0.9.4
pkgrel=1
2013-05-04 18:35:50 +00:00
pkgdesc='Python to C++ compiler'
arch=('arm' 'armv6h' 'armv7h')
url='http://code.google.com/p/shedskin/'
license=('GPL2')
depends=('pcre' 'gc' 'python2')
2013-06-21 20:09:39 +00:00
source=("http://shedskin.googlecode.com/files/$pkgname-$pkgver.tgz")
sha256sums=('81fc79660b94c5c566ffb07ccc42db2ace99f23fd867e00ccf48bdc0dfcffc5b')
2013-05-04 18:35:50 +00:00
2013-06-21 20:09:39 +00:00
prepare() {
2013-05-04 18:35:50 +00:00
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
2013-06-21 20:09:39 +00:00
sed -i 's:/bin/python2:/usr/bin/python2:' "scripts/$pkgname"
}
package() {
cd "$srcdir/$pkgname-$pkgver"
2013-05-04 18:35:50 +00:00
python2 setup.py install --prefix="$pkgdir/usr"
}
# vim:set ts=2 sw=2 et: