summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: abac0314593cfd88eac1ac3bba07d2fa447942ee (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: Daniel Landau <daniel@landau.fi>

pkgname=python2-viitenumero
pkgver=1.0
pkgrel=1
pkgdesc="Python module for generating Finnish reference numbers"
arch=('any')
url="https://github.com/codemasteroy/py-viitenumero"
license=('GPL-3')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/30/2c/250ae197446b3045f61c10210d2f5ec56d301047c2316a7414ddce7bb61d/py-viitenumero-1.0.tar.gz#md5=5b434d008846203f39a170a1708373d7"
  "viitenumero"
)
md5sums=('5b434d008846203f39a170a1708373d7'
         'c86c270102089132ab3f4e9dbe23eaee')

package() {
  cd "$srcdir/py-viitenumero-$pkgver"
  sed -i 's|python$|python2|' maksu/viitenumero.py
  python2 setup.py install --root="$pkgdir/" --optimize=0
  install -Dm755 ../viitenumero "$pkgdir/usr/bin/viitenumero"
}