blob: c50a65d61bbc3c8d59225a336ca067aacc3e66b1 (
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
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Richard PALO <richard.palo@free.fr>
pkgname=python-sql
pkgver=1.5.1
pkgrel=1
pkgdesc="Library to write SQL queries"
arch=(any)
url="https://${pkgname}.tryton.org"
license=(BSD)
depends=(python)
makedepends=(python-build python-installer python-setuptools python-wheel)
source=(https://foss.heptapod.net/tryton/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('9ccf3f6a584d3ceae9b4f65e2921c8b469732988f6493060ef59bd4a9c82f098aee180d42da2d19e056bac556519d07022cfb5da300fc53aaa4587e3711acfaf')
build() {
cd ${pkgname}-${pkgver}
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd ${pkgname}-${pkgver}
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 COPYRIGHT -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|