37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
_name=toml
|
|
pkgname=tauthon-toml
|
|
pkgver=0.10.2
|
|
pkgrel=2
|
|
pkgdesc='A Tauthon library for parsing and creating TOML'
|
|
arch=('any')
|
|
url='https://github.com/uiri/toml'
|
|
license=('Expat')
|
|
depends=('tauthon')
|
|
makedepends=('tauthon-setuptools')
|
|
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
|
|
"tauthon-toml-0.10.1-install_type_hints.patch")
|
|
sha512sums=('ede2c8fed610a3827dba828f6e7ab7a8dbd5745e8ef7c0cd955219afdc83b9caea714deee09e853627f05ad1c525dc60426a6e9e16f58758aa028cb4d3db4b39'
|
|
'000fd1416341567a1828034f6e3844f7c5436e2b89f06b0ffa2567fc86d3b72dd4a8085d26d4366764446dfb050cfececaada4ca53f9c355c62aafb26ea87be4')
|
|
|
|
prepare() {
|
|
cd "$_name-$pkgver"
|
|
patch -Np1 -i "$srcdir/tauthon-toml-0.10.1-install_type_hints.patch"
|
|
}
|
|
|
|
build() {
|
|
cd "$_name-$pkgver"
|
|
tauthon setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "$_name-$pkgver"
|
|
tauthon setup.py install --skip-build \
|
|
--optimize=1 \
|
|
--prefix=/usr \
|
|
--root="${pkgdir}"
|
|
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
install -Dm644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
}
|