blob: ab77b38dd19b7df6e7beeb8b92de915153d93d65 (
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
|
# Maintainer : axzxc1236 <axzxc1236 (@) users.noreply.github.com>
# Contributor : LinRs <LinRs at users.noreply.github.com>
# Contributor : hexchain <i at hexchain.org>
# Contributor : Thaodan <theodorstormgradex {at) gmail [dot} com>
# Contributor : Firef0x <Firefgx {at) gmail [dot} com>
# Contributor : Bernhard Walle <bwalle.de: bernhard >
# Contributor : Jesse Jaara <gmail.com, mail.ru: jesse.jaara>
# Contributor : Armin Wehrfritz
# Contributor : Patrick McCarty <pnorcks at gmail dot com>
pkgname=osc-git
_pkgname=osc
pkgver=1.1.3.r4474.d089e878
pkgrel=1
pkgdesc="Command line client for the openSUSE Build Service"
arch=(any)
url="https://github.com/openSUSE/osc"
license=('GPL2')
depends=('python' 'python-m2crypto' 'diffstat')
makedepends=('git' 'python-setuptools' 'python-sphinx')
optdepends=('obs-build: required to run local builds'
'obs-service-format_spec_file: for running the format_spec_file source service'
'obs-service-download_files: for running the download_files source service'
'python-keyring: keyring support'
'python-progressbar: progressbar support for operations like uploading and services'
'python-distro: Linux OS platform information API'
)
conflicts=('osc' 'osc-bash-completion' 'zsh-completion-osc')
replaces=('osc-bash-completion' 'zsh-completion-osc')
source=("git+https://github.com/openSUSE/osc.git#branch=master")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
semver="$(head -1 NEWS|sed 's! !!g;s!-!!g')"
echo $semver.r$(git rev-list --count master).$(git rev-parse --short HEAD)
}
build() {
cd "${srcdir}/${_pkgname}"
python setup.py build
}
check() {
cd "${srcdir}/${_pkgname}"
python setup.py test
}
package() {
cd "${srcdir}/${_pkgname}"
python setup.py install --root="${pkgdir}/" --optimize=1 --prefix=/usr
install -Dm644 "${srcdir}/${_pkgname}/contrib/complete.sh" "${pkgdir}/usr/share/bash-completion/completions/osc"
install -Dm755 "${srcdir}/${_pkgname}/contrib/osc.complete" "${pkgdir}/usr/lib/osc/complete"
}
|