blob: 5020e0a9329877184e21eae8e33604d40a89f77e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Marco A Rojas <marco.rojas@zentek.com.mx>
pkgname=python-migra
pkgver=3.0.1621480950
pkgrel=2
pkgdesc="A schema comparison tool for PostgreSQL"
arch=('any')
url="https://databaseci.com/docs/migra"
license=('Unlicense')
depends=(
'python'
'python-sqlbag'
'python-six'
'python-schemainspect'
'python-psycopg2'
)
makedepends=(
'git'
'python-build'
'python-poetry-core'
'python-installer'
)
_commit='01acaf2edac85f2a9329169159ad610ab1fa66be'
source=("$pkgname::git+https://github.com/djrobstep/migra.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
prepare() {
cd "$pkgname"
}
build() {
cd "$pkgname"
python \
-m build \
--wheel \
--no-isolation
}
check() {
cd "$pkgname"
}
package() {
cd "$pkgname"
python \
-m installer \
--destdir="$pkgdir" \
dist/*.whl
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|