Commit 4c054d79 authored by Leo's avatar Leo
Browse files

testing/createrepo_c: upgrade to 0.15.1

parent e4cd87de
# Contributor:
# Maintainer: Paul Morgan <jumanjiman@gmail.com>
pkgname=createrepo_c
pkgver=0.14.3
pkgver=0.15.1
pkgrel=0
pkgdesc="C implementation of createrepo"
url="https://github.com/rpm-software-management/createrepo_c/"
......@@ -30,19 +30,19 @@ checkdepends="
xz
"
subpackages="
${pkgname}-bash-completion:bashcomp:noarch
${pkgname}-dev
${pkgname}-doc
${pkgname}-libs
$pkgname-bash-completion:bashcomp:noarch
$pkgname-dev
$pkgname-doc
$pkgname-libs
py3-${pkgname}:py3
"
source="
${pkgname}-${pkgver}.tar.gz::https://github.com/rpm-software-management/createrepo_c/archive/${pkgver}.tar.gz
$pkgname-$pkgver.tar.gz::https://github.com/rpm-software-management/createrepo_c/archive/$pkgver.tar.gz
"
build() {
mkdir "${builddir}"/build
cd "${builddir}"/build
mkdir "$builddir"/build
cd "$builddir"/build
# Pass cmake variables so
# end user does not need to set LD_LIBRARY_PATH.
......@@ -57,37 +57,38 @@ build() {
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=true \
-DPYTHON_DESIRED=3 \
-DWITH_ZCHUNK=OFF \
-DWITH_LIBMODULEMD=OFF
-DWITH_LIBMODULEMD=OFF \
-DENABLE_DRPM=OFF
make
}
check() {
cd "${builddir}"/build
cd "$builddir"/build
make tests
tests/run_gtester.sh
}
package() {
cd "${builddir}"/build
make install/strip DESTDIR=${pkgdir}
cd "$builddir"/build
make install/strip DESTDIR=$pkgdir
}
py3() {
pkgdesc="Python3 bindings for createrepo_c"
depends="python3 ${pkgname}-libs"
depends="python3 $pkgname-libs"
# This is architecture-specific and provides a *.so file.
mkdir -p "${subpkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/python* "${subpkgdir}"/usr/lib/
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}
bashcomp() {
depends=""
pkgdesc="Bash completions for ${pkgname}"
install_if="${pkgname}=${pkgver}-r${pkgrel} bash-completion"
pkgdesc="Bash completions for $pkgname"
install_if="${pkgname}=$pkgver-r${pkgrel} bash-completion"
mkdir -p "${subpkgdir}"/usr/share/
mv "${pkgdir}"/usr/share/bash-completion "${subpkgdir}"/usr/share/
mkdir -p "$subpkgdir"/usr/share/
mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share/
}
sha512sums="949d3831ec0a54800948e2338eaf65e3d5d4ef06fcb4cef10541eac8dd44be80aecfc06c5de1de9cb318df01fdd9369912101fcb7b7265f32daa377765e98a55 createrepo_c-0.14.3.tar.gz"
sha512sums="d7a601f2ee766cd56ea5b72a4b30c0b855c50fb490070e471dc7bdac84e33ef17ecc2facf3a733a89c0b3586c9b39bd66c684f5e82050ac9d4b285325c7fd854 createrepo_c-0.15.1.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment