diff options
author | Gordian Edenhofer | 2016-05-12 15:15:29 +0200 |
---|---|---|
committer | Gordian Edenhofer | 2016-05-12 15:15:29 +0200 |
commit | 99a641e90391d7b773946ad2b331a2bb7274b297 (patch) | |
tree | 4379e8e80bc63b099bd2d77c2afec29f5a8d76c0 | |
parent | fdf7b94a366437c0cb2ad28fa6b55cacb655cc10 (diff) | |
download | aur-99a641e90391d7b773946ad2b331a2bb7274b297.tar.gz |
upgpkg: bup-git 1364.cad3c11-3
Use configure to set python to python2 instead of manipulating the build
files with sed. The functionality was only recently introduced but
already works at the master branch.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 6 insertions, 14 deletions
@@ -1,7 +1,7 @@ pkgbase = bup-git pkgdesc = Efficient file backup system based on the git packfile format pkgver = 1364.cad3c11 - pkgrel = 2 + pkgrel = 3 url = https://bup.github.io/ arch = i686 arch = x86_64 @@ -4,7 +4,7 @@ pkgname=bup-git pkgver=1364.cad3c11 -pkgrel=2 +pkgrel=3 pkgdesc='Efficient file backup system based on the git packfile format' arch=('i686' 'x86_64') url='https://bup.github.io/' @@ -26,25 +26,17 @@ pkgver() { prepare() { cd "${srcdir}/${pkgname}" - # Fixing numerous false invocations since python2 is needed - find . -type f -exec sed -i -e '1s/env python\b/env python2/' {} + - sed -i -e 's/find_prog python\b/find_prog python2/' \ - -e 's/MF_PATH_INCLUDE PYTHON python\b/MF_PATH_INCLUDE PYTHON python2/' \ - config/configure - sed -i -e 's/PYTHON=python\b/PYTHON=python2/' -e '/docs-available/d' Makefile - sed -i -e 's/python\b -c/python2 -c/' t/{lib,test-meta,test-ls}.sh - - # Make test suite happy - #git config --global user.email "bob@zombo.com" + # Configure the program to use python2 everywhere + PYTHON=/usr/bin/python2 ./configure } build() { make -C "${srcdir}/${pkgname}" } -# Disabled in favor of increased speed +# Disabled in favor of increased speed - it should pass if run #check() { -# make -C "${srcdir}/${pkgname}" test -j1 +# make -C "${srcdir}/${pkgname}" test #} package() { |