summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ef72263440b82efbc7980c8e9f0d1a5daa840639 (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: Sean Anderson <seanga2@gmail.com>
_pkgname=find_libpython
pkgname=python-$_pkgname
pkgver=0.3.0
pkgrel=2
pkgdesc="Finds the libpython associated with the current Python environment, wherever it may be hiding"
arch=(any)
url="https://github.com/ktbarrett/find_libpython"
license=('MIT')
depends=('python')
makedepends=(python-build python-installer python-wheel python-setuptools-scm)
options=(!emptydirs)
install=
source=("https://github.com/ktbarrett/$_pkgname/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('0ae368607b2ebac1be239e95f33b53600748e2cdf9fd864b81228d3690ae9ea781045eca16df45bf66956539c0af80b781fd6eff343742dd20767b722f4b82d8')

prepare() {
	echo "Version: $pkgver" > "$_pkgname-$pkgver/PKG-INFO"
}

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

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