summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1dcef035f7a826b183f9ae96df3d6377083e2d06 (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
# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>

_srcname=tinyrecord

pkgname=python-tinyrecord
pkgver=0.1.5
pkgrel=2
pkgdesc="Atomic transactions for TinyDB"
arch=('any')
url="https://github.com/eugene-eeo/tinyrecord"
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=(
  "https://github.com/eugene-eeo/tinyrecord/archive/${pkgver}.tar.gz"
)
sha256sums=(
  '2875aa34620cf7bfa2c0ba5e8d0c7d92c29efac177f30c6910d017111f505731'
)

build() {
  cd "${srcdir}/${_srcname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_srcname}-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
  install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
}