Skip to content

Instantly share code, notes, and snippets.

@ingamedeo
Last active June 13, 2018 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ingamedeo/a6f196048c3173cf59381d6ab3a25f02 to your computer and use it in GitHub Desktop.
Save ingamedeo/a6f196048c3173cf59381d6ab3a25f02 to your computer and use it in GitHub Desktop.
pkgbase=('python-astral')
pkgname=('python-astral')
_module='astral'
pkgver='1.6.1'
pkgrel=0
pkgdesc="Calculations for the position of the sun and moon."
url="https://github.com/sffjunkie/astral"
depends=('python' 'python-pytz')
makedepends=('python-setuptools')
license=('unknown')
arch=('any')
source=("https://github.com/sffjunkie/astral/archive/${pkgver}.tar.gz")
sha256sums=('ab0c08f2467d35fcaeb7bad15274743d3ac1ad18b5391f64a0058a9cd192d37d')
build() {
cd "${srcdir}/${_module}-${pkgver}"
python setup.py build
}
package() {
depends+=()
cd "${srcdir}/${_module}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment