aboutsummaryrefslogtreecommitdiffstats
path: root/solar-python/PKGBUILD
blob: 1b89797f1dd4989dfb5ac32d1bbbc148984a2b2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se>

pkgname=solar-python
pkgver=2.5.2
pkgrel=1
pkgdesc="Solar data calculation and prediction library for Python"
arch=(any)
url="https://github.com/maandree/solar-python"
license=('custom:ISC')
depends=(python3)
makedepends=(make coreutils python3 texinfo)
source=($url/archive/$pkgver.tar.gz)
sha256sums=(6f191d8c1012770a6016146b5c3880388f936d1f85c41e81c0b0ebc379785722)


build() {
  cd "$srcdir/$pkgname-$pkgver"
  make PREFIX=/usr PY_MAJOR=3 PY_MINOR="$(python3 -V | cut -d ' ' -f 2 | cut -d . -f 2)"
}


package() {
  cd "$srcdir/$pkgname-$pkgver"
  make PREFIX=/usr PY_MAJOR=3 PY_MINOR="$(python3 -V | cut -d ' ' -f 2 | cut -d . -f 2)" install DESTDIR="$pkgdir"
}