blob: 90db6e3094ab4dd643d89389323002962ea337d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
pkgbase=waf
pkgname=('waf' 'waf2')
pkgver=1.8.20
pkgrel=1
pkgdesc='The meta build system'
arch=('any')
url="https://$pkgbase.io"
license=('BSD3')
makedepends=('python' 'python2')
source=("$url/$pkgbase-$pkgver.tar.bz2"{,.asc})
md5sums=('1e188c5179f47964050b08863e9026a0'
'SKIP')
validpgpkeys=('E6EEAF4A06B3C4CDAC71D4DE67A565EDFDF90E64')
build() {
cd $srcdir/$pkgbase-$pkgver
./configure
}
package_waf() {
pkgdesc='The meta build system (Python 3)'
depends=('python')
cd $srcdir/$pkgbase-$pkgver
mkdir -pvm 755 $pkgdir/usr/bin
cp -va waf $pkgdir/usr/bin/waf
}
package_waf2() {
pkgdesc='The meta build system (Python 2)'
depends=('python2')
cd $srcdir/$pkgbase-$pkgver
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' waf
mkdir -pvm 755 $pkgdir/usr/bin
cp -va waf $pkgdir/usr/bin/waf2
}
|