aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/PKGBUILD
blob: 7156e4e04cde3b0d012ca89b2753152fa618a5f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Egor Tensin <Egor.Tensin@gmail.com>
pkgname=cmake-common
_name="${pkgname//-/_}"
pkgver=3.4.1
pkgrel=1
pkgdesc='Utilities to help develop C++/CMake projects'
arch=(any)
url='https://github.com/egor-tensin/cmake-common'
license=(MIT)
makedepends=(python-build python-installer python-wheel)
depends=(python)
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$_name/$_name-$pkgver.tar.gz")
md5sums=(SKIP)

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

package() {
    cd "$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}