summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48b1bd2b43338fa4d691c078a96bdbe2db0f07f3 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- shell-script -*-
# Arch Linux package build script
#
# Contributor: Vsevolod Balashov <vsevolod@balashov.name>
# Contributor: Egor Kuropatkin <egor.k8n@gmail.com>
# Contributor: Egor Laufer <egor.l4r@gmail.com>
#
name=hg-git
pkgname=$name-hg
pkgver=631.711baa274f78
pkgrel=1
pkgdesc="the Hg-Git mercurial plugin"
arch=(any)
url="http://hg-git.github.com/"
license=('GPL2')
depends=('mercurial' 'python2-dulwich')
makedepends=('mercurial')
provides=('hg-git')
conflicts=('hg-git')
source=('hg+https://bitbucket.org/durin42/hg-git'
        'hggit.rc')
md5sums=('SKIP'
        '592a454e09f498074c57a5b7e383e808')

pkgver() {
    cd "$srcdir/$name"
    hg identify -ni | awk 'BEGIN{OFS=".";} {print $2,$1}'
}

package() {
    cd $srcdir/$name
    python2 setup.py install --prefix=/usr --root=$pkgdir
    install -m0644 -D "${srcdir}/hggit.rc" "${pkgdir}/etc/mercurial/hgrc.d/hggit.rc"
}

# Changelog
################################################################################
# * Sun Jul 19 2015 Egor Laufer <egor.l4r@gmail.com>
# - Moved package to aur4
#
# * Fri Nov 29 2013 Egor Kuropatkin <egor.k8n@gmail.com>
# - Replaced python-dulwich dependency with python2-dulwich
#
# * Thu Aug 08 2013 Egor Kuropatkin <egor.k8n@gmail.com>
# - Add pkgver function.
# - Add hggit.rc: this file will be placed to /etc/merucrial/hgrc.d/ to enable
#   hggit extention by default.
# - Remove .install file