blob: d8ba794ded703ce6e55365a920a9e718dbf14257 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Contributor: buckket <felix@buckket.org>
pkgname=redo-python
pkgver=0.42.d
pkgrel=1
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"
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
}
|