summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9229701bf1f625edc4a39e8110a51a7c1ab3cf84 (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
pkgname=python-offshoot-git
_module='offshoot'
pkgver=r9.7906a95
pkgrel=1
pkgdesc="Modern, elegant, minimalistic but powerful plugin system for Python 3.5+."
url="https://github.com/greyltc/offshoot"
depends=(python python-yaml)
makedepends=(python-setuptools)
license=('MIT')
arch=('any')
source=("git://github.com/greyltc/offshoot.git")
md5sums=('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
}