summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41b75537e2d18be9dac083f758fa09a93c8d795d (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
# Maintainer:  Misaka13514 <Misaka13514 at gmail dot com>

pkgname=python-rdbtools
_name=${pkgname#python-}
_fullname=redis-rdb-tools
pkgver=0.1.15
pkgrel=4
pkgdesc="Utilities to convert Redis RDB files to JSON or SQL formats"
arch=('any')
url="https://github.com/sripathikrishnan/redis-rdb-tools"
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
optdepends=('python-lzf: highly recommended to speed up parsing')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$_name-$pkgver.tar.gz")
sha256sums=('901c9846f74642e89b44d0fd932289fa62130d51fc6256ba4d8e208af8d23e27')

build() {
    cd "$_fullname-$_name-$pkgver"
    python -m build --wheel --no-isolation
}

# check() {
#     cd "$_fullname-$_name-$pkgver"
#     python run_tests
# }

package() {
    cd "$_fullname-$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}