Package Details: redo-git redo.0.11.r0.g33dadbf-1

Git Clone URL: https://aur.archlinux.org/redo-git.git (read-only)
Package Base: redo-git
Description: Smaller, easier, more powerful, and more reliable than make. An implementation of djb's redo.
Upstream URL: https://github.com/apenwarr/redo
Licenses: GPL
Conflicts: redo
Provides: redo
Submitter: timdiels
Maintainer: None
Last Packager: timdiels
Votes: 0
Popularity: 0.000000
First Submitted: 2015-09-16 13:38
Last Updated: 2015-09-16 14:04

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

forivall commented on 2015-09-17 21:27

The build doesn't work, since arch's default python is python3. Following is a patch to fix that. I use gawk because I'm lazy :)
---------------------------------------
diff --git a/PKGBUILD b/PKGBUILD
index 7f101d2..12bde8c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ url='https://github.com/apenwarr/redo'
license=('GPL')
arch=('any')
depends=(python2)
-makedepends=(git)
+makedepends=(git gawk)
source=("git+https://github.com/apenwarr/redo.git")
md5sums=(SKIP) # fill with updkpkgsums
conflicts=('redo')
@@ -18,8 +18,14 @@ pkgver() {
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

+prepare() {
+ cd "redo"
+ find . -name .git -prune -o -executable -type f -print |
+ xargs gawk -i inplace '{ gsub(/^#!\/usr\/bin\/env python$/, "#!/usr/bin/env python2") }; { print }'
+ git apply ../../patch
+}
+
package() {
cd "redo"
- make DESTDIR="$pkgdir/" install
+ make PYTHON="/usr/bin/python2" DESTDIR="$pkgdir/" install
}
-
diff --git a/patch b/patch
new file mode 100644
index 0000000..e19d883
--- /dev/null
+++ b/patch
@@ -0,0 +1,30 @@
+diff --git a/install.do b/install.do
+index 9a736f0..67cf877 100644
+--- a/install.do
++++ b/install.do
+@@ -1,6 +1,7 @@
+ exec >&2
+ redo-ifchange _all
+
++: ${PYTHON:=/usr/bin/python}
+ : ${INSTALL:=install}
+ : ${DESTDIR:=}
+ : ${PREFIX:=/usr}
+@@ -26,7 +27,7 @@ for d in *.py version/*.py; do
+ fix=$(echo $d | sed 's,-,_,g')
+ $INSTALL -m 0644 $d $LIBDIR/$fix
+ done
+-python -mcompileall $LIBDIR
++$PYTHON -mcompileall $LIBDIR
+
+ # It's important for the file to actually be named 'sh'. Some shells (like
+ # bash and zsh) only go into POSIX-compatible mode if they have that name.
+@@ -37,7 +38,7 @@ for dd in redo*.py; do
+ d=$(basename $dd .py)
+ fix=$(echo $d | sed -e 's,-,_,g')
+ cat >install.wrapper <<-EOF
+- #!/usr/bin/python
++ #!$PYTHON
+ import sys, os;
+ exedir = os.path.dirname(os.path.abspath(sys.argv[0]))
+ sys.path.insert(0, os.path.join(exedir, '../lib/redo'))