Accepting request 763989 from home:metakcahura:branches:openSUSE:Tools

Update arch PKGBUILD file for python-3.8.

OBS-URL: https://build.opensuse.org/request/show/763989
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/osc?expand=0&rev=322
This commit is contained in:
Adrian Schröter 2020-02-18 08:49:23 +00:00 committed by Git OBS Bridge
parent 2dc9e44a05
commit d60baba78b

View File

@ -2,18 +2,23 @@ pkgname=osc
pkgver=0.167.2
pkgrel=0
pkgdesc="Open Build Service client"
arch=('i686' 'x86_64')
arch=('x86_64')
url="https://www.github.com/openSUSE/osc"
license=('GPL-2.0+' 'GPL-2.0')
groups=('base-devel')
depends=('python2' 'python2-m2crypto' 'urlgrabber')
depends=('python-m2crypto')
makedepends=('python-setuptools')
source=(osc-${pkgver}.tar.gz)
md5sums=('SKIP')
build() {
cd "${srcdir}"/osc-${pkgver}
python setup.py build
}
package() {
msg "Installing osc ..."
cd "${srcdir}"/osc-${pkgver}
python2 setup.py build
python2 setup.py install --prefix=/usr --root=${pkgdir}
python setup.py install --root="${pkgdir}/" --optimize=1 --prefix=/usr
ln -s osc-wrapper.py ${pkgdir}/usr/bin/osc
}