blob: 25f097cffe9c6112dc73b87c33d801ff731975c3 (
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
|
# Maintainer: Pellegrino Prevete (tallero) <pellegrinoprevete at gmail dot com
# Contributor: Anatol Pomozov <anatol pomozov at gmail dot com>
_py="python2"
_pkg="rpm"
pkgname="${_py}-${_pkg}"
pkgver=4.15.1.3
pkgrel=1
pkgdesc="Python2 bindings for RPM Package Manager"
arch=('x86_64')
url="http://www.${_pkg}.org"
license=('GPL2')
depends=("${_py}")
makedepends=("${_py}" 'nss')
_repo_url="https://github.com/${_pkg}-software-management/${_pkg}"
source=(
"${_repo_url}/archive/refs/tags/${_pkg}-${pkgver}.tar.gz")
sha256sums=(
'2c4f4f93bfd833c62bf9fa07398b6f7c707297254e259bdb72b9f7b3ec6a1c88')
_project_dir="${_pkg}-${_pkg}-${pkgver}"
prepare() {
cd "${_project_dir}"
autoreconf -i
}
build() {
cd "${_project_dir}"
local _configure_opts=(
--prefix=/usr
--sysconfdir=/etc
--localstatedir=/var
--enable-python
--without-lua )
./configure "${_configure_opts[@]}" \
CPPFLAGS="`pkg-config --cflags nss`" \
PYTHON="${_py}"
make
}
package() {
cd "${_project_dir}/python"
"${_py}" setup.py install --root="${pkgdir}" \
--optimize=1
}
|