summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6a92692afd85268fbcc0cb2d7af958b1a5bdd49 (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: Rafael Ascensão <rafa dot almas at gmail dot com>
# Contributor: Magnus Therning <magnus@therning.org>

pkgname=git-imerge-git
_pkgname=git-imerge
pkgver=1.1.0.r20.g9d51192
pkgrel=1
pkgdesc='Incremental merge for git'
arch=('any')
url='https://github.com/mhagger/git-imerge'
license=('GPL2')
depends=('python' 'git')
makedepends=('python-setuptools' 'bash-completion')
changelog=${pkgname}.changelog
source=('git+https://github.com/mhagger/git-imerge.git')
sha256sums=('SKIP')

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

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

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