33 lines
977 B
Bash
33 lines
977 B
Bash
# Template file for 'python-pgmigrate'
|
|
pkgname=python-pgmigrate
|
|
version=1.0.3
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="pgmigrate-${version}"
|
|
build_style=python-module
|
|
pycompile_module="yandex_pgmigrate"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-future python-sqlparse python-psycopg2 python-yaml"
|
|
short_desc="Simple tool to evolve PostgreSQL schema easily (Python2)"
|
|
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
|
|
license="PostgreSQL"
|
|
homepage="https://github.com/yandex/pgmigrate"
|
|
distfiles="https://github.com/yandex/pgmigrate/archive/v${version}.tar.gz"
|
|
checksum=a80719300c5e8b9f07fbe864ecbc19f02796547303bda00e3d61de613639b9b3
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-pgmigrate_package() {
|
|
archs=noarch
|
|
pycompile_module="yandex_pgmigrate"
|
|
depends="python3 python3-sqlparse python3-psycopg2 python3-yaml"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/pgmigrate3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|