summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 08eaf6b068a799c6333295121727dade9a6cbee6 (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
# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>

pkgname=python-pkgbuild-git
pkgver=r7.7afcd99
pkgrel=2
pkgdesc="Python library to parse pacman's .SRCINFO file"
arch=('any')
url="https://github.com/z3ntu/python-pkgbuild"
license=('MIT')
depends=('python')
makedepends=('git')
options=(!emptydirs)
source=(git+https://github.com/z3ntu/python-pkgbuild)
md5sums=(SKIP)

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

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

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