summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b68db681425cdf05d2c48678f0cbcd0d4652974f (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
# Maintainer: Kuan-Yen Chou <kuanyenchou at gmail dot com>

pkgname=python-ccsyspath
pkgver=1.1.0
pkgrel=4
pkgdesc="Find the system include paths for clang and gcc based c/c++ compilers"
arch=('x86_64')
url="https://github.com/AndrewWalker/ccsyspath"
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/c/ccsyspath/ccsyspath-$pkgver.tar.gz")
sha256sums=('e081170c7e1841af640b70c21dba697e9a7306cf8f318f57e298b6435879b6e7')

build() {
    cd "$srcdir/ccsyspath-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/ccsyspath-$pkgver"
    python -m installer \
        --destdir="$pkgdir" \
        --prefix=/usr \
        --compile-bytecode=1 \
        dist/*.whl
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    rm -rf "$pkgdir"/usr/lib/python*/site-packages/tests
}