mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 02:27:15 +08:00
33 lines
952 B
Bash
33 lines
952 B
Bash
pkgname=(python3-dnspython python2-dnspython)
|
|
pkgbase=python-dnspython
|
|
pkgver=1.15.0
|
|
pkgrel=2
|
|
pkgdesc="A DNS toolkit for Python"
|
|
arch=('any')
|
|
url="http://www.dnspython.org"
|
|
license=('BSD')
|
|
makedepends=('python3-setuptools' 'python2-setuptools')
|
|
validpgpkeys=('A580DEE052FEC78D8ACF383DF24B3AFC8CA2F5C7')
|
|
source=(http://www.dnspython.org/kits/$pkgver/dnspython-$pkgver.tar.gz{,.asc})
|
|
sha256sums=('11598ae5735746e63921f8eebdfdee4a2e7d0ba842ebd57ba02682d4aed8244b'
|
|
'SKIP')
|
|
|
|
package_python2-dnspython() {
|
|
depends=('python2')
|
|
replaces=('python2-dns')
|
|
conflicts=('python2-dns')
|
|
provides=('pthon2-dns')
|
|
|
|
cd "$srcdir"/dnspython-$pkgver
|
|
python2 setup.py install --root="$pkgdir"
|
|
install -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
package_python3-dnspython() {
|
|
depends=('python3')
|
|
|
|
cd "$srcdir"/dnspython-$pkgver
|
|
python3 setup.py install --root="$pkgdir"
|
|
install -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|