summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4daeff42c99ba874a6820dfa669e07028ac22b59 (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
# Maintainer: pumpkincheshire <sollyonzou@gmail.com>

_name=anyconfig-cbor2-backend
pkgname=python-$_name
pkgver=0.1.2
pkgrel=2
pkgdesc='A backend module for python-anyconfig to support CBOR files w/ using cbor2'
url='https://github.com/ssato/python-anyconfig-cbor2-backend'
arch=('any')
license=('MIT')
depends=('python-anyconfig' 'python-cbor2')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('f0d72d0d367062f78dfdbef6f07fd6541cc305f41f1220ed59ad289dc7f0476e')

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

package() {
    cd "$srcdir/$_name-$pkgver"
    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
    install -Dm644 LICENSE* -t "$pkgdir/usr/share/licenses/$pkgname"
}