mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 04:44:40 +08:00
30 lines
766 B
Bash
30 lines
766 B
Bash
pkgname=scons
|
|
pkgver=3.0.1
|
|
pkgrel=1
|
|
pkgdesc="Extensible Python-based build utility"
|
|
arch=('any')
|
|
url="http://scons.org"
|
|
license=('MIT')
|
|
depends=('python2')
|
|
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
|
|
md5sums=('b6a292e251b34b82c203b56cfa3968b3')
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
|
|
python2 setup.py install --standard-lib \
|
|
--prefix=/usr \
|
|
--install-data=/usr/share \
|
|
--optimize=1 \
|
|
--root="$pkgdir"
|
|
|
|
# fix for python 2.7
|
|
sed -i 's:^#!.*bin/env python:#!/usr/bin/env python2:' \
|
|
"$pkgdir"/usr/bin/*
|
|
|
|
install -Dm644 LICENSE.txt \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|