summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9fd81f1ba6a847de2af574e0acbd930814677768 (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
# Maintainer: Marco A Rojas <marco.rojas@zentek.com.mx>

pkgbase='nexus3-cli'
pkgname='nexus3-cli'
pkgver='4.1.3'
pkgrel=1
pkgdesc="A python-based CLI for Sonatype Nexus OSS 3"
url="https://gitlab.com/thiagocsf/nexus3-cli"
depends=('python' 'python-inflect' 'python-clint' 'python-semver')
makedepends=('python-setuptools')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
sha256sums=('0a94e9dd4df57288cba5bcd2ef2fcfe4fe29512df9f9d4d94d178476536327a9')

prepare() {
    # patching package inflect
    sed -i 's|inflect>=4.1.0,<5|inflect>=4.1.0,<6|g' */setup.py
}

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    python setup.py build
}

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