summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c55065a99645b2e256cafd48c959a4c8b384e71d (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
# Maintainer: fft <anonim288@gmail.com>

pkgname=rpmlint-git
pkgver=1.10.r184.g3682eaf
pkgrel=1
pkgdesc='A tool for checking common errors in rpm packages.'
arch=('any')
url="https://github.com/rpm-software-management/rpmlint"
license=('GPL2')
makedepends=('git')
depends=('python' 'rpm-org' 'cpio' 'desktop-file-utils')
conflicts=('rpmlint')
source=("${pkgname}::git+https://github.com/rpm-software-management/rpmlint.git#branch=master")
sha256sums=('SKIP')

pkgver() {
    cd ${pkgname}
    git describe --long --tags| sed 's/rpmlint-\([0-9\.]*\)-\(.*\)/\1.r\2/;s/-/./g'
}

build() {
  cd ${pkgname}
  python setup.py build
}

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