summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a27059148c171d7bf06e200ced6fb9bdd0dbe40 (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
# Maintainer: Simon Legner <Simon.Legner@gmail.com>

pkgname=git-revise-git
pkgdesc='Efficiently update, split, and rearrange commits'
pkgver=0.6.0.r29.g06e9126
pkgrel=1
arch=('any')
url=https://mystor.github.io/git-revise.html
license=('MIT')
source=("git+https://github.com/mystor/${pkgname%-git}.git")
depends=('git' 'python')
makedepends=('python-setuptools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
b2sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd ${pkgname%-git}
  python setup.py build
}

package() {
  cd ${pkgname%-git}
  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}

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