summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f830081d1a26de694954000e0b12f957b2e40b4 (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
pkgbase='python-python-iso639'
pkgname=('python-python-iso639')
_src_folder='iso639-2024.2.7'
pkgver='2024.2.7'
pkgrel=1
pkgdesc="Look-up utilities for ISO 639 language codes and names"
url="https://github.com/jacksonllee/iso639"
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel')
license=('Apache')
arch=('any')
source=("https://github.com/jacksonllee/iso639/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('7eceff200ca1b74bb63aada75f58fe7403b44b2f1d3c41ddec4e2254a25a65fd')

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

package() {
    depends+=()
    cd "${srcdir}/${_src_folder}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}