summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 206c8da38b16074d7943dca2a47b0703cd9f26f8 (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
# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>

pkgname=python-testing.common.database
pkgver=2.0.3
pkgrel=10
pkgdesc='Utilities for testing.* packages'
arch=(any)
url='https://github.com/tk0miya/testing.common.database'
license=(Apache)
makedepends=(python-setuptools)
depends=(python)
source=("$pkgname-$pkgver.tar.gz"::"https://github.com/tk0miya/testing.common.database/archive/$pkgver.tar.gz"
        python310.patch)
sha256sums=('f2d4f865e52bacf54cf853b6043cceb06a31ed020b50d3b0e63c7e59c66f00b4'
            '826867930199ad4032b668fdd8113f0390856c7c947ae25c44c232be9f4801da')

prepare() {
  cd testing.common.database-$pkgver
  patch -Np1 -i ../python310.patch

  # https://github.com/tk0miya/testing.common.database/issues/21
  sed -i 's|2\.0\.2|2.0.3|' setup.py
}

build() {
  cd testing.common.database-$pkgver
  python setup.py build
}

package() {
  cd testing.common.database-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}