[arch-commits] Commit in (4 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Sat Feb 26 07:25:11 UTC 2022
Date: Saturday, February 26, 2022 @ 07:25:10
Author: grawlinson
Revision: 1136644
addpkg: redo-python 0.42.d-2
Added:
redo-python/
redo-python/repos/
redo-python/trunk/
redo-python/trunk/PKGBUILD
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Added: redo-python/trunk/PKGBUILD
===================================================================
--- redo-python/trunk/PKGBUILD (rev 0)
+++ redo-python/trunk/PKGBUILD 2022-02-26 07:25:10 UTC (rev 1136644)
@@ -0,0 +1,53 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: buckket <felix at buckket.org>
+
+pkgname=redo-python
+pkgver=0.42.d
+pkgrel=2
+pkgdesc="An implementation of the redo build system in Python"
+arch=('any')
+license=('GPL')
+url="https://github.com/apenwarr/redo"
+depends=('python')
+makedepends=(
+ 'git'
+ 'python-beautifulsoup4'
+ 'python-markdown'
+)
+optdepends=('python-setproctitle: pretty output')
+provides=('redo')
+conflicts=('redo-sh' 'redo-c' 'redo-jdebp')
+_commit='7f00abc36be15f398fa3ecf9f4e5283509c34a00' # redo-0.42d
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed -e 's/^redo-//' -e 's/\([[:alpha:]]\)$/.\1/'
+}
+
+check() {
+ cd "$pkgname"
+
+ # tests fail if C/CXX/LD FLAGS are set
+ # there's probably a cleaner way around this
+ local L_CFLAGS L_CXXFLAGS L_LDFLAGS
+ L_CFLAGS=$CFLAGS
+ L_CXXFLAGS=$CXXFLAGS
+ L_LDFLAGS=$LDFLAGS
+
+ unset CFLAGS CXXFLAGS LDFLAGS
+
+ make test
+
+ CFLAGS=$L_CFLAGS
+ CXXFLAGS=$L_CXXFLAGS
+ LDFLAGS=$L_LDFLAGS
+}
+
+package() {
+ cd "$pkgname"
+
+ make DESTDIR="$pkgdir" install
+}
More information about the arch-commits
mailing list