mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
python-periodictable: fix the build
This commit is contained in:
parent
21f64c1bca
commit
5fd8819572
3 changed files with 18 additions and 19 deletions
|
@ -1,18 +1,23 @@
|
||||||
# Maintainer: Ross Whitfield <whitfieldre@ornl.gov>
|
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
|
||||||
|
# Contributor: Ross Whitfield <whitfieldre@ornl.gov>
|
||||||
pkgname='python-periodictable'
|
pkgname='python-periodictable'
|
||||||
_pkgname='periodictable'
|
_pkgname='periodictable'
|
||||||
pkgver=1.7.1
|
pkgver=2.0.2
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc="Extensible periodic table of the elements"
|
pkgdesc="Extensible periodic table of the elements"
|
||||||
url="http://periodictable.readthedocs.org"
|
url="http://periodictable.readthedocs.org"
|
||||||
arch=("any")
|
arch=("any")
|
||||||
license=('public domain')
|
license=('public domain')
|
||||||
makedepends=('python-setuptools')
|
makedepends=('python-build' 'python-installer' 'python-setuptools')
|
||||||
source=("https://github.com/pkienzle/periodictable/archive/v$pkgver.tar.gz")
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/pkienzle/periodictable/archive/v$pkgver.tar.gz")
|
||||||
md5sums=('e1a246ef913d841d1deb106c9ba63894')
|
md5sums=('cafa51731c6693e1f85a6f7a7bcff393')
|
||||||
|
|
||||||
package() {
|
build() {
|
||||||
depends=('python-numpy' 'python-pyparsing')
|
|
||||||
cd "$srcdir/${_pkgname}-$pkgver"
|
cd "$srcdir/${_pkgname}-$pkgver"
|
||||||
python setup.py install --root="$pkgdir/" --optimize=1
|
python -m build --wheel --no-isolation
|
||||||
|
}
|
||||||
|
package() {
|
||||||
|
depends=('python' 'python-matplotlib' 'python-numpy' 'python-pyparsing' 'python-uncertainties')
|
||||||
|
cd "$srcdir/${_pkgname}-$pkgver"
|
||||||
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
from lilaclib import *
|
|
||||||
|
|
||||||
def pre_build():
|
|
||||||
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
|
|
||||||
run_cmd(['updpkgsums'])
|
|
||||||
|
|
||||||
def post_build():
|
|
||||||
git_add_files('PKGBUILD')
|
|
||||||
git_commit()
|
|
|
@ -2,6 +2,10 @@ build_prefix: extra-x86_64
|
||||||
maintainers:
|
maintainers:
|
||||||
- github: starsareintherose
|
- github: starsareintherose
|
||||||
email: kuoi@bioarchlinux.org
|
email: kuoi@bioarchlinux.org
|
||||||
|
pre_build_script: |
|
||||||
|
update_pkgver_and_pkgrel(_G.newver)
|
||||||
|
post_build_script: |
|
||||||
|
git_pkgbuild_commit()
|
||||||
update_on:
|
update_on:
|
||||||
- source: github
|
- source: github
|
||||||
github: pkienzle/periodictable
|
github: pkienzle/periodictable
|
||||||
|
|
Loading…
Add table
Reference in a new issue