summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 97d720bde2b007f437d311650b6ac9928d4fec8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: Kirill Goncharov <kdgoncharov at gmail dot com>

pkgname='beanprice'
pkgdesc='Price quotes fetcher for Beancount'
pkgver=1.2.0
pkgrel=1
arch=('any')
url="https://github.com/beancount/beanprice"
license=('GPL')
depends=('beancount>=2.3.4' 'python-dateutil' 'python-requests')
provides=('beanprice')
conflicts=('beanprice-git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/beancount/beanprice/archive/v${pkgver}.tar.gz")
sha256sums=('42e8b8cca9ebf554a748c2871ce8e4a02ae94a9b27441dc41b14926de7f33731')

package () {
    cd "${pkgname}-${pkgver}"
    python setup.py install --prefix=/usr --root="${pkgdir}"
    # Rename bean-price executable to avoid conflicts with beancount package
    mv "${pkgdir}/usr/bin/bean-price" "${pkgdir}/usr/bin/bean-price-standalone"
}