summaryrefslogtreecommitdiff
path: root/pcr/apenwarr-redo
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-10-29 19:34:30 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-10-29 19:34:30 -0400
commitf5961d729c99f108a1d07b4dd368c35b25423b74 (patch)
tree0210a8a24600ae1449d275601c1e4cdcec786801 /pcr/apenwarr-redo
parent3c7a452d23ebf6e96f6745d717d8374bbb2e2c5b (diff)
downloadabslibre-f5961d729c99f108a1d07b4dd368c35b25423b74.tar.gz
abslibre-f5961d729c99f108a1d07b4dd368c35b25423b74.tar.bz2
abslibre-f5961d729c99f108a1d07b4dd368c35b25423b74.zip
add pcr/apenwarr-redo (replacing ~lukeshu/redo)
Diffstat (limited to 'pcr/apenwarr-redo')
-rw-r--r--pcr/apenwarr-redo/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/pcr/apenwarr-redo/PKGBUILD b/pcr/apenwarr-redo/PKGBUILD
new file mode 100644
index 000000000..4dcc648a3
--- /dev/null
+++ b/pcr/apenwarr-redo/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Maintainer (AUR:redo-git): Tim Diels <timdiels.m@gmail.com>
+
+pkgname='apenwarr-redo'
+pkgdesc="Avery Pennarun's implmentation of the redo build system"
+url="https://github.com/apenwarr/redo"
+pkgver=0.11
+license=(LGPL2 custom:BSD2) # no, not 2.1, and not 'or any later version'
+source=(redo-redo-$pkgver.tar.gz::https://github.com/apenwarr/redo/archive/redo-$pkgver.tar.gz)
+md5sums=('1b6a07bdb00a74b2d166845f9520b67a')
+
+pkgrel=1
+arch=(any)
+depends=(python2 sh)
+makedepends=(python2-markdown python2-beautifulsoup3)
+provides=('redo')
+conflicts=('redo')
+
+prepare() {
+ cd "$srcdir/redo-redo-$pkgver"
+ # Make everything use python2
+ grep -rxFl '#!/usr/bin/env python' | xargs -d $'\n' sed -i 's@^#!/usr/bin/env python$@&2@'
+ sed -i 's@python\b@python2@' install.do
+ sed -rn 's|^# ?||p' < options.py > options.py.LICENSE.txt
+}
+
+build() {
+ cd "$srcdir/redo-redo-$pkgver"
+ make
+}
+
+check() {
+ cd "$srcdir/redo-redo-$pkgver"
+ make test
+}
+
+package() {
+ cd "$srcdir/redo-redo-$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LGPL2.txt"
+ install -Dm644 options.py.LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/options.py.LICENSE.txt"
+}