summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4360baeb5fd64c0ef2f87d376ced97caf3af33ab (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Maintainer: Christian Schendel <doppelhelix@gmail.com>

# Manjaro credits
# Maintainer: Mark Wagie <mark@manjaro.org>
# Contributor: Helmut Stult

# Arch credits:
# Contributor: Thomas Oster <thomas.oster@rwth-aachen.de>
# Maintainer: Zeph <zeph33@gmail.com>

pkgbase='rabbitvcs-git'

pkgname=(
    'rabbitvcs-git'
    'rabbitvcs-cli-git'
    'rabbitvcs-caja-git'
    'rabbitvcs-nautilus-git'
    'rabbitvcs-nemo-git'
    'rabbitvcs-thunar-git'
)

pkgver=r1935.f3da1d7
pkgrel=2
pkgdesc="A set of graphical tools written to provide simple and straightforward access to the version control systems you use"
arch=('any')
url="https://github.com/rabbitvcs/rabbitvcs"
source=(
    "${pkgbase%-git}::git+${url}.git"
)
makedepends=(
    'git'
    'python-setuptools'
    'gtk-update-icon-cache'
)

license=(
    'GPL-2.0-or-later'
)
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgbase%-git}"
    ( set -o pipefail
        git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

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

package_rabbitvcs-git(){
    depends=(
        'git'
        'gtk3'
        'python-configobj'
        'python-dulwich'
        'python-gobject'
        'python-pysvn'
        'python-simplejson'
        'tk'
    )
    optdepends=(
        'meld: graphical diff tool'
        'python-pygments: For syntax highlighting'
        'python-gtkspellcheck: For spell checking of commit messages'
        'hunspell: For spell checking of commit messages'
    )
    provides=(
        'rabbitvcs'
    )
    conflicts=(
        'rabbitvcs'
    )

    cd "$srcdir/${pkgbase%-git}"
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

package_rabbitvcs-cli-git() {
    pkgdesc="A command line client for RabbitVCS"
    depends=(
        'rabbitvcs'
    )
    provides=(
        'rabbitvcs-cli'
    )
    conflicts=(
        'rabbitvcs-cli'
    )

    cd "$srcdir/${pkgbase%-git}"
    install -Dm755 "clients/cli/${pkgbase%-git}" -t \
        "$pkgdir/usr/bin"
}

package_rabbitvcs-caja-git() {
    pkgdesc="Caja extension for RabbitVCS"
    depends=(
        'dbus-python'
        'python-caja'
        'rabbitvcs'
    )
    provides=(
        'rabbitvcs-caja'
    )
    conflicts=(
        'rabbitvcs-caja'
    )
    install="${pkgname%-git}.install"

    cd "$srcdir/${pkgbase%-git}"
    install -Dm644 clients/caja/RabbitVCS.py -t \
        "$pkgdir/usr/share/caja-python/extensions"
}

package_rabbitvcs-nautilus-git() {
    pkgdesc="Nautilus extension for RabbitVCS"
    depends=(
        'dbus-python'
        'python-nautilus'
        'rabbitvcs'
    )
    provides=(
        'rabbitvcs-nautilus'
    )
    conflicts=(
        'rabbitvcs-nautilus'
    )
    install="${pkgname%-git}.install"
    cd "$srcdir/${pkgbase%-git}"
    install -Dm644 clients/nautilus/RabbitVCS.py -t \
        "$pkgdir/usr/share/nautilus-python/extensions"
}

package_rabbitvcs-nemo-git() {
    pkgdesc="Nemo extension for RabbitVCS"
    depends=(
        'dbus-python'
        'nemo-python'
        'rabbitvcs'
    )
    provides=(
        'rabbitvcs-nemo'
    )
    conflicts=(
        'rabbitvcs-nemo'
    )
    install="${pkgname%-git}.install"
    cd "$srcdir/${pkgbase%-git}"
    install -Dm644 clients/nemo/RabbitVCS.py -t \
        "$pkgdir/usr/share/nemo-python/extensions"
}

package_rabbitvcs-thunar-git() {
    pkgdesc="Thunar extension for RabbitVCS"
    depends=(
        'dbus-python'
        'rabbitvcs'
        'thunarx-python'
    )
    install="${pkgname%-git}.install"
    cd "$srcdir/${pkgbase%-git}"
    install -Dm644 clients/thunar/RabbitVCS.py -t \
        "$pkgdir/usr/share/thunarx-python/extensions"
}
# vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab: