mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-09 23:51:37 +01:00
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
# Contributor: Thomas Boerger <thomas@webhippie.de>
|
|
# Maintainer: Thomas Boerger <thomas@webhippie.de>
|
|
pkgname=py-pgspecial
|
|
_pkgname=pgspecial
|
|
pkgver=1.11.2
|
|
pkgrel=0
|
|
pkgdesc="Meta-commands handler for Postgres Database"
|
|
url="https://pypi.python.org/pypi/pgspecial"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="py-click py-sqlparse"
|
|
makedepends="python2-dev py-setuptools python3-dev"
|
|
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
python2 setup.py check
|
|
python3 setup.py check
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python2 setup.py build
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
_py2() {
|
|
replaces="$pkgname"
|
|
depends="${depends//py-/py2-}"
|
|
_py python2
|
|
}
|
|
|
|
_py3() {
|
|
depends="${depends//py-/py3-}"
|
|
_py python3
|
|
}
|
|
|
|
_py() {
|
|
local python="$1"
|
|
pkgdesc="$pkgdesc (for $python)"
|
|
depends="$depends $python"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
|
|
cd "$builddir"
|
|
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
|
}
|
|
|
|
sha512sums="58bf5ca3bd848a9f3010f91c02bdef84bc6ebbeeb2aa58062e64117a1e2cb9e56ffc9b10d179806a7293cbf5955be557395523567f54c29b22a610431b2ade61 py-pgspecial-1.11.2.tar.gz"
|