Date: Wednesday, April 19, 2023 @ 04:22:42
  Author: grawlinson
Revision: 1447336

archrelease: copy trunk to community-staging-any

Added:
  redo-python/repos/community-staging-any/
  redo-python/repos/community-staging-any/PKGBUILD
    (from rev 1447335, redo-python/trunk/PKGBUILD)

----------+
 PKGBUILD |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

Copied: redo-python/repos/community-staging-any/PKGBUILD (from rev 1447335, 
redo-python/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-19 04:22:42 UTC (rev 1447336)
@@ -0,0 +1,56 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: buckket <[email protected]>
+
+pkgname=redo-python
+pkgver=0.42.d
+pkgrel=1
+pkgdesc='An implementation of the redo build system in Python'
+arch=('any')
+url='https://github.com/apenwarr/redo'
+license=('GPL')
+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 with make 4.4+
+  rm -rf t/203-make
+
+  # 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
+
+  ./do test
+
+  CFLAGS=$L_CFLAGS
+  CXXFLAGS=$L_CXXFLAGS
+  LDFLAGS=$L_LDFLAGS
+}
+
+package() {
+  cd "$pkgname"
+
+  DESTDIR="$pkgdir" ./do install
+}

Reply via email to