blob: 2dd8554d101b85b47324daf75dd25c7ac6941b06 (
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
52
53
54
55
56
57
58
|
# Maintainer: Tomislav Ivek <tomislav.ivek@gmail.com>
pkgname=conan-git
pkgver=1.29.0.dev.r4497.dd258e0ae
pkgrel=1
pkgdesc="A distributed, open source, C/C++ package manager."
arch=('any')
url="https://conan.io"
license=('MIT')
makedepends=('python-setuptools' 'patch' 'fakeroot')
depends=('python-pyjwt>=1.4.0'
'python-requests>=2.8.1'
'python-urllib3>=1.25.6'
'python-colorama>=0.3.3'
'python-yaml>=3.11'
'python-patch-ng>=1.17.2'
'python-fasteners>=0.14.1'
'python-six>=1.10.0'
'python-node-semver>=0.6.1'
'python-bottle>=0.12.8'
'python-distro>=1.0.2'
'python-pluginbase>=0.5'
'python-future>=0.16.0'
'python-pygments>=2.0'
'python-deprecation>=2.0'
'python-tqdm>=4.28.1'
'python-jinja>=2.3'
'python-dateutil>=2.7.0')
provides=('conan')
conflicts=('conan')
source=("conan-git::git+https://github.com/conan-io/conan.git" "arch-reqs.patch")
md5sums=('SKIP'
'4db1a3af80ad8961bf5edaef056216bd')
pkgver() {
cd "$pkgname"
printf "%s.r%s.%s" "$(grep -oP "__version__ = '\K([0-9a-z.-]+)(?=')" conans/__init__.py | sed 's/\([^-]*-g\)/r\1/;s/-/./g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$pkgname"
patch -Np1 -i "${srcdir}/arch-reqs.patch"
}
build() {
cd "$srcdir/$pkgname"
python setup.py build
}
package() {
cd "$srcdir/$pkgname"
python setup.py install --optimize=1 --root=${pkgdir}
install -m755 -d "${pkgdir}/usr/share/licenses/conan"
install -m644 LICENSE.md "${pkgdir}/usr/share/licenses/conan/"
install -m755 -d "${pkgdir}/usr/share/doc/conan"
install -m644 contributors.txt "${pkgdir}/usr/share/doc/conan/"
}
|