summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfc27806db5507e78635b3b145bd24a88ed87a6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# shellcheck shell=bash disable=SC2034,SC2154
# Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
_pkgname=pyrime
pkgname=python-$_pkgname
pkgver=0.0.7
pkgrel=1
pkgdesc="rime for python, attached to prompt-toolkit keybindings for some prompt-toolkit applications such as ptpython"
arch=(x86_64)
url=https://github.com/Freed-Wu/$_pkgname
depends=(python librime)
makedepends=(python-installer)
optdepends=(ptpython python-prompt_toolkit python-python-platformdirs)
license=(GPL3)
_py="cp$(python -c'import sys; print(f"{sys.version_info.major}{sys.version_info.minor}")' || echo 313)"
source=("https://files.pythonhosted.org/packages/$_py/${_pkgname::1}/${_pkgname//-/_}/${_pkgname//-/_}-$pkgver-$_py-$_py-manylinux_2_17_x86_64.whl")
sha256sums=('62f9cb3f3f44a213506cbfc41286ba6d106ae7241aa36ea055cf08a527788548')

package() {
	python -minstaller -d"$pkgdir" ./*.whl
}