summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-05-04 03:05:01 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-05-04 19:16:54 -0300
commite5a82c43b058dc72db8473089a93f9a26d3bd22a (patch)
treeae46b1aa4c776c175aa64d1de04cb850f62594e4
parent9d262c8a42a47eebd3d68be31c43bcf6d9217d59 (diff)
waf: add new package to [pcr]
-rw-r--r--pcr/waf/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/pcr/waf/PKGBUILD b/pcr/waf/PKGBUILD
new file mode 100644
index 000000000..ca96ced6b
--- /dev/null
+++ b/pcr/waf/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+
+pkgbase=waf
+pkgname=('python-waf' 'python2-waf')
+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() {
+ rm -v $pkgbase-$pkgver/waf
+ mv -v {,python-}$pkgbase-$pkgver
+ cp -va python{,2}-$pkgbase-$pkgver
+
+ cd $srcdir/python-$pkgbase-$pkgver
+ ./configure
+
+ cd $srcdir/python2-$pkgbase-$pkgver
+ sed -i 's|/usr/bin/env python|/usr/bin/env python2|
+ ' waf-light
+ ./configure
+}
+
+package_python-waf() {
+ pkgdesc='The meta build system (Python 3)'
+ depends=('python')
+
+ cd $srcdir/python-$pkgbase-$pkgver
+ mkdir -pvm 755 $pkgdir/usr/bin
+ cp -va waf $pkgdir/usr/bin/waf
+}
+
+package_python2-waf() {
+ pkgdesc='The meta build system (Python 2)'
+ depends=('python2')
+
+ cd $srcdir/python2-$pkgbase-$pkgver
+ mkdir -pvm 755 $pkgdir/usr/bin
+ cp -va waf $pkgdir/usr/bin/waf2
+}