diff options
author | Tomas Krizek | 2020-07-14 13:28:59 +0200 |
---|---|---|
committer | Tomas Krizek | 2020-07-14 13:28:59 +0200 |
commit | 86211992ec173d49fba4f798aff20d1f7560c1ba (patch) | |
tree | 2543eb295ae8bb860b4c6e0d151e9d51f6780d65 /PKGBUILD | |
parent | d553b7037233a2c8bf45a87a438cb1a525b89cd0 (diff) | |
download | aur-86211992ec173d49fba4f798aff20d1f7560c1ba.tar.gz |
update to proper git build
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 19 insertions, 6 deletions
@@ -1,7 +1,8 @@ # Maintainer: Tomas Krizek <tomas.krizek@nic.cz> pkgname=python-dnspython-git -pkgver=2.0.0rc2 +_pkgname=dnspython +pkgver=v2.0.0rc2.r28.a7e71aa pkgrel=1 pkgdesc="A DNS toolkit for Python" arch=('any') @@ -13,6 +14,7 @@ makedepends=( 'python-setuptools' # 'cython' # uncomment dep & build option for cython optimization speedup ) +checkdepends=('python-idna' 'python-cryptography' 'python-trio') depends=('python') optdepends=( 'python-idna: support for update IDNA 2008' @@ -23,18 +25,29 @@ optdepends=( 'python-curio: async I/O backend' 'python-sniffio: async I/O' ) -source=("https://github.com/rthalley/dnspython/archive/v${pkgver}.tar.gz") -sha256sums=('c588b132eefaf7d0892a3b0aa863b990264f08811ae4b0d4d6e6b62086c3de18') +source=("${_pkgname}::git+https://github.com/rthalley/${_pkgname}.git") +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_pkgname}" + printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} build() { - cd "${srcdir}"/dnspython-${pkgver} + cd "${srcdir}/${_pkgname}" python setup.py build # --cython-compile } +check() { + cd "${srcdir}/${_pkgname}" + + python setup.py test +} + package() { - cd "${srcdir}"/dnspython-${pkgver} + cd "${srcdir}/${_pkgname}" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE" } |