void-packages/srcpkgs/python-pgmigrate/template
2019-04-15 09:28:24 -03:00

33 lines
976 B
Bash

# Template file for 'python-pgmigrate'
pkgname=python-pgmigrate
version=1.0.4
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/${version}.tar.gz"
checksum=4b9ec67baeacdde4d599997f192e2b3b4e76f7e0457f4831141ad7b4f46b901d
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
}
}