blob: c2d4894fb122d11e771ec8228a251344d53b93a1 (
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
|
pkgname=dnf-plugins-extras
pkgver=0.0.8
pkgrel=1
pkgdesc="Extras DNF Plugins"
arch=('any')
url="https://github.com/rpm-software-management/$pkgname"
license=('GPL2')
depends=('dnf' 'python')
makedepends=('cmake')
checkdepends=('python-nose')
optdepends=('createrepo_c: for local plugin'
'snapper: for snapper plugin'
'tracer: for tracer plugin')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgname-$pkgver-1.tar.gz")
md5sums=('2a6a1af9401db50c81ccf7dc49a30007')
prepare() {
cd "$pkgname-$pkgname-$pkgver-1"
rm -rf build
mkdir build
}
build() {
cd "$pkgname-$pkgname-$pkgver-1"/build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DPYTHON_DESIRED=3 \
..
make
}
# Tests seem to need a minimal RPM database on the system
#check() {
# cd "$pkgname-$pkgname-$pkgver-1"
# PYTHONPATH=./plugins nosetests -s tests
#}
package() {
cd "$pkgname-$pkgname-$pkgver-1"/build
make DESTDIR="$pkgdir/" install
install -D -m644 ../README.rst "$pkgdir/usr/share/doc/$pkgname/README.rst"
}
# vim: set ft=sh ts=4 sw=4 noet:
|