summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a60c08725c2dc00484963a13391a46d9ba44d60 (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
# Maintainer: Alex Sarum <rum.274.4 at gmail dot com>

pkgname='python-pltable-git'
pkgver=1.0.0
pkgrel=1
pkgdesc="PLTable is a Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables."
arch=('any')
url='https://github.com/platomav/PLTable'
license=('BSD')
depends=()
makedepends=('git' 'python-setuptools')
conflicts=('python-prettytable')
source=("$pkgname::git+https://github.com/platomav/PLTable")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"

    local v_ver=$(python setup.py -V | sed 's/-//')
    printf "%s" "$v_ver"
}

build() {
    cd "$srcdir/$pkgname"
    python setup.py build
}

package() {
    cd "${srcdir}/${pkgname}"

    # Install python packages to $pkgdir
    python setup.py install --root ${pkgdir}

    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}