summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d149e4a2f5cd59d541a5d6da3fffb1115b82243 (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: Tomislav Ivek <tomislav.ivek@gmail.com>
# Contributor: FirstAirBender <noblechuk5[at]web[dot]de>

pkgname=('conan')
pkgver=2.9.1
pkgrel=1
pkgdesc="A distributed, open source, C/C++ package manager."
arch=('any')
url="https://conan.io"
license=('MIT')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'patch')
depends=('sqlite'
         'python-requests>=2.25'
         'python-urllib3>=1.26.6'
         'python-colorama>=0.4.3'
         'python-yaml>=6.0'
         'python-patch-ng>=1.18.0'
         'python-fasteners>=0.15'
         'python-distro>=1.4.0'
         'python-jinja>=3.0'
         'python-dateutil>=2.8.0'
         'python-bottle>=0.12.8'
         'python-pluginbase>=0.5'
         'python-pyjwt>=2.4.0')
conflicts=('conan1')
provides=("conan")

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/conan-io/conan/archive/${pkgver}.tar.gz")

prepare() {
  cd $pkgname-$pkgver
  # Remove maximum version constraints
  sed -i -r 's|(.*),.*|\1|g' conans/requirements.txt
  sed -i -r 's|(.*),.*|\1|g' conans/requirements_server.txt
  sed -i -r 's|(.*),.*|\1|g' conans/requirements_dev.txt  
 }

build() {
  cd $pkgname-$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd $pkgname-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
  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/"
}
md5sums=('15f98ae954579991544ad89097787868')