summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5708a64a46dcce1852647edfc575297dadaaa806 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Anthony25 <Anthony Ruhier>

pkgbase=python-gazelleapi
_pkgbase="${pkgbase#python-}"
pkgname=(python-gazelleapi python2-gazelleapi)
pkgver=0.1.4
pkgrel=5
pkgdesc='An API for interacting with Gazelle based sites'
arch=(any)
url='https://github.com/itismadness/gazelleapi'
license=(MIT)
makedepends=(
  python-setuptools
  python-future
  python-requests
  python2-setuptools
  python2-future
  python2-requests
  python2-configparser
)
options=(!emptydirs)
source=("https://github.com/itismadness/${_pkgbase}/archive/${pkgver}.tar.gz")
sha256sums=('29bb94b16dd1d8924c4650373243fac8612e3ea36eef0017b6bf838536cd5e95')

package_python-gazelleapi() {
  depends=('python-future' 'python-requests')
  cd "${srcdir}/${_pkgbase}-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1
  install -Dm 644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

package_python2-gazelleapi() {
  depends=('python2-future' 'python2-requests' 'python2-configparser')
  cd "${srcdir}/${_pkgbase}-${pkgver}"
  python2 setup.py install --root="${pkgdir}/" --optimize=1
  install -Dm 644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: