PKGBUILDs/community/shedskin/PKGBUILD

34 lines
1.1 KiB
Bash
Raw Normal View History

2017-07-18 18:26:20 +00:00
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
2013-05-04 18:35:50 +00:00
# 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
2018-11-13 19:42:30 +00:00
pkgrel=3
2013-05-04 18:35:50 +00:00
pkgdesc='Python to C++ compiler'
2017-07-18 18:26:20 +00:00
arch=('arm' 'armv6h' 'armv7h' 'aarch64')
url='https://shedskin.github.io/'
2013-05-04 18:35:50 +00:00
license=('GPL2')
depends=('pcre' 'gc' 'python2')
2017-07-18 18:26:20 +00:00
makedepends=('git')
source=("git+https://github.com/shedskin/shedskin.git#tag=v$pkgver")
sha256sums=('SKIP')
2013-05-04 18:35:50 +00:00
2013-06-21 20:09:39 +00:00
prepare() {
2017-07-18 18:42:11 +00:00
[[ $CARCH == "arm" ]] && sed -i 's/-march=native/-march=armv5te/' $pkgname/shedskin/FLAGS
[[ $CARCH == "armv6h" ]] && sed -i 's/-march=native/-march=armv6 -mfloat-abi=hard -mfpu=vfp/' $pkgname/shedskin/FLAGS
[[ $CARCH == "armv7h" ]] && sed -i 's/-march=native/-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard/' $pkgname/shedskin/FLAGS
[[ $CARCH == "aarch64" ]] && sed -i 's/-march=native/-march=armv8-a/' $pkgname/shedskin/FLAGS
2017-07-18 18:26:20 +00:00
sed -i 's:bin/python:usr/bin/python:' "$pkgname/scripts/$pkgname"
2013-06-21 20:09:39 +00:00
}
package() {
2017-07-18 18:26:20 +00:00
cd "$pkgname"
2013-06-21 20:09:39 +00:00
2013-05-04 18:35:50 +00:00
python2 setup.py install --prefix="$pkgdir/usr"
}
2017-07-18 18:26:20 +00:00
# vim: ts=2 sw=2 et: