summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e127db8aa77b87bd3bae05ea33f0417f7b9064ab (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
# Maintainer: Guillaume Dolle  <dev at gdolle.com>
pkgname=micromamba
_pkgname=${pkgname/micro/}
pkgver=1.5.8
_pkgver=2024.03.25
pkgrel=2
pkgdesc="C++ tiny version of mamba, the fast conda package installer"
arch=('i686' 'x86_64')
url="https://github.com/mamba-org/mamba"
license=('BSD-3-Clause')
depends=('libarchive' 'curl' 'libsolv' 'fmt' 'yaml-cpp' 'reproc')
makedepends=('cmake' 'cli11' 'pybind11' 'spdlog' 'nlohmann-json' 'python-pip' 'tl-expected' 'gtest')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mamba-org/mamba/archive/refs/tags/${_pkgver}.tar.gz )
md5sums=('fe28d77d0cae57dde82a2f4fea360e9e')
provides=('libmamba')
conflicts=('micromamba-bin')

prepare(){
  cmake -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr \
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
        -DBUILD_LIBMAMBA=ON \
        -DBUILD_LIBMAMBAPY=ON \
        -DBUILD_LIBMAMBA_TESTS=OFF \
        -DBUILD_MAMBA_PACKAGE=OFF \
        -DBUILD_MICROMAMBA=ON \
        -DBUILD_SHARED=ON \
        -DBUILD_STATIC=OFF \
        -Wno-dev \
        -B build \
        -S ${_pkgname}-${_pkgver}
}

build() {
  cmake --build build
}

check() {
  ctest --test-dir build
}

package() {
  cmake --install build
  install -Dm 644 ${_pkgname}-${_pkgver}/${pkgname}/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}