summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3ed9e1d5d7ee9f1feb7770cd1c573add83b687b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Jean-Luc Tambasco <an.obscurity@gmail.com>
_pkgname=opticalmaterialspy
pkgname=python-opticalmaterialspy
pkgver=r25.246a76c
pkgrel=1
pkgdesc="Python library with optical material properties."
arch=('any')
url="https://github.com/jtambasco/opticalmaterialspy"
license=('MIT')
makedepends=('python' 'python-setuptools' 'python-numpy' 'python-scipy')
source=('git+https://github.com/jtambasco/opticalmaterialspy.git')
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$_pkgname"
  python setup.py install --root="$pkgdir/" --optimize=1
}