summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f5653e193fe6660869ebe747c3206ed39ca0df1 (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
# Maintainer: SiƓn le Roux <sinisterstuf@gmail.com>
# Please submit issues or merge-requests at:
# https://github.com/sionleroux/PKGBUILD-yuml

pkgname=yuml
pkgver=r46.62d6bb3 # generated by pkgver() below
pkgrel=1
pkgdesc="An unofficial command line client for the yUML web app"
arch=('any')
url="https://github.com/wandernauta/yuml"
license=('ISC')
depends=('python')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/wandernauta/yuml.git")
md5sums=('SKIP')

pkgver() {
  # Git, no tags available
  cd "$srcdir/${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/${pkgname%-git}"
  python setup.py clean --all
  python setup.py build
}

package() {
  cd "$srcdir/${pkgname%-git}"
  python setup.py install --root "${pkgdir}/"
}