summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5461918e4688c5ac7754700bfeef2832b9dddca7 (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
# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=('python-mediafire-git')
_module=mediafire
pkgver=r121.e68913f
pkgrel=1
pkgdesc="Python MediaFire client library (git)"
url="https://github.com/MediaFire/mediafire-python-open-sdk"
license=('BSD')
arch=('any')
# source=("mediafire"::"git+https://github.com/MediaFire/mediafire-python-open-sdk")
source=("mediafire"::"git+https://github.com/szlaci83/mediafire-python-open-sdk#branch=v1.5_api")
makedepends=('python-setuptools' 'git')
depends=('python' 'python-requests-toolbelt')
conflicts=('python-mediafire')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${_module}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_module}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_module}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}