From 3bb9d1e62099e71c0673879a324ba71047ffbcdf Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Fri, 21 Jun 2013 20:09:39 +0000 Subject: [PATCH] community/shedskin to 0.9.4-1 --- community/shedskin/PKGBUILD | 22 +++++++++++----------- community/shedskin/shedskin.py | 3 --- 2 files changed, 11 insertions(+), 14 deletions(-) delete mode 100644 community/shedskin/shedskin.py diff --git a/community/shedskin/PKGBUILD b/community/shedskin/PKGBUILD index ea1211877..52413ea2d 100644 --- a/community/shedskin/PKGBUILD +++ b/community/shedskin/PKGBUILD @@ -6,30 +6,30 @@ # - change from being an 'any' package to architecture-specific pkgname=shedskin -pkgver=0.9.3 -pkgrel=1.1 +pkgver=0.9.4 +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') +source=("http://shedskin.googlecode.com/files/$pkgname-$pkgver.tgz") +sha256sums=('81fc79660b94c5c566ffb07ccc42db2ace99f23fd867e00ccf48bdc0dfcffc5b') -package() { +prepare() { 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" + sed -i 's:/bin/python2:/usr/bin/python2:' "scripts/$pkgname" +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py install --prefix="$pkgdir/usr" - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim:set ts=2 sw=2 et: diff --git a/community/shedskin/shedskin.py b/community/shedskin/shedskin.py deleted file mode 100644 index 61e7a83e8..000000000 --- a/community/shedskin/shedskin.py +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/python2 -import shedskin -shedskin.main()