summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35fdae0e2f9dd6e90495c1e12d012056e736c572 (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
#!/usr/bin/env -S sh -c 'nvchecker -cnvchecker.toml --logger=json | jq -r '\''.version | sub("^v"; "") | split("-") | .[-1]'\'' | xargs -i{} sed -i "s/^\\(pkgver=\\).*/\\1{}/" $0'
# shellcheck shell=bash disable=SC2034,SC2154
# Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
# Update this package by:
#
# ```sh
# sudo pacman -S nvchecker jq pacman-contrib
# ./PKGBUILD
# ```
_pkgname=autopxd
pkgname=python-$_pkgname
pkgver=2.4.0
pkgrel=1
pkgdesc="automatically generate Cython pxd files from C headers"
arch=(any)
url=https://github.com/elijahr/$_pkgname
depends=(python-pycparser python-click)
makedepends=(python-installer)
license=(MIT)
source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}2/${_pkgname//-/_}2-$pkgver.tar.gz")
sha256sums=('863370d5d2e62e544f3e1155a03330f05cc846d5331f71f2c45ca9b8cdb84d66')

package() {
	cd "${_pkgname//-/_}2-$pkgver" || return 1
	python setup.py install --root="$pkgdir" --optimize=1
}
# ex: nowrap