aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-02 12:44:16 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-02 12:44:16 +0200
commitef8d0e5ea2f9e57a493b22cd8ade54bd63bf2643 (patch)
tree787dbc7e97ff3132302146a75f58b37390eee6e9
parentupdate dist (diff)
downloadsolar-python-ef8d0e5ea2f9e57a493b22cd8ade54bd63bf2643.tar.gz
solar-python-ef8d0e5ea2f9e57a493b22cd8ade54bd63bf2643.tar.bz2
solar-python-ef8d0e5ea2f9e57a493b22cd8ade54bd63bf2643.tar.xz
update dist
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--dist/archlinux/stable/PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD
index 2c4b501..5ba3c51 100644
--- a/dist/archlinux/stable/PKGBUILD
+++ b/dist/archlinux/stable/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=solar-python
pkgver=2.1
-pkgrel=1
+pkgrel=2
pkgdesc="Solar data calculation and prediction library for Python"
arch=(any)
url="https://github.com/maandree/solar-python"
@@ -15,12 +15,12 @@ sha256sums=(eb2e1c23e9e223012d06ed913cefa1d04646c678f939b03b13ce625be437498f)
build() {
cd "$srcdir/$pkgname-$pkgver"
- make PREFIX=/usr PY_MAJOR=3 PY_MINOR=4
+ make PREFIX=/usr PY_MAJOR="$(python -V | cut -d ' ' -f 2 | cut -d . -f 1)" PY_MINOR="$(python -V | cut -d ' ' -f 2 | cut -d . -f 2)"
}
package() {
cd "$srcdir/$pkgname-$pkgver"
- make PREFIX=/usr PY_MAJOR=3 PY_MINOR=4 install DESTDIR="$pkgdir"
+ make PREFIX=/usr PY_MAJOR="$(python -V | cut -d ' ' -f 2 | cut -d . -f 1)" PY_MINOR="$(python -V | cut -d ' ' -f 2 | cut -d . -f 2)" install DESTDIR="$pkgdir"
}