wok-next diff rpm/receipt @ rev 20939

Fix brisk-menu, mate-backgrounds, mate-user-guide
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Aug 26 09:13:55 2018 +0300 (2018-08-26)
parents
children d5aab818505e
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rpm/receipt	Sun Aug 26 09:13:55 2018 +0300
     1.3 @@ -0,0 +1,56 @@
     1.4 +# SliTaz package receipt v2.
     1.5 +
     1.6 +PACKAGE="rpm"
     1.7 +VERSION="4.14.1"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="RPM Package Manager"
    1.10 +MAINTAINER="erjo@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +WEB_SITE="http://rpm.org/"
    1.13 +
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15 +WGET_URL="http://ftp.rpm.org/releases/rpm-${VERSION%.*}.x/$TARBALL"
    1.16 +# integrity check: http://rpm.org/download.html -> Release notes
    1.17 +TARBALL_SHA256="43f40e2ccc3ca65bd3238f8c9f8399d4957be0878c2e83cba2746d2d0d96793b"
    1.18 +
    1.19 +BUILD_DEPENDS="p7zip-full gnupg zlib-dev bzip2-dev xz-dev zstd-dev \
    1.20 +elfutils-dev nss-dev nspr-dev libmagic-dev popt-dev libarchive-dev db-dev \
    1.21 +gettext dbus-dev"
    1.22 +SPLIT="rpm-dev"
    1.23 +
    1.24 +compile_rules() {
    1.25 +	./configure \
    1.26 +		--without-lua \
    1.27 +		$CONFIGURE_ARGS &&
    1.28 +	fix libtool &&
    1.29 +	make &&
    1.30 +	make install
    1.31 +}
    1.32 +
    1.33 +genpkg_rules() {
    1.34 +	case $PACKAGE in
    1.35 +		rpm)
    1.36 +			copy @std
    1.37 +			DEPENDS="bzlib dbus elfutils libarchive libdb liblzma libmagic nss \
    1.38 +			popt python zlib zstd"
    1.39 +			SUGGESTED="p7zip-full gnupg"
    1.40 +			TAGS="package-manager"
    1.41 +			;;
    1.42 +		*-dev)
    1.43 +			copy @dev
    1.44 +			DEPENDS="rpm bzip2-dev db-dev nss-dev popt-dev xz-dev zlib-dev \
    1.45 +			zstd-dev"
    1.46 +			;;
    1.47 +	esac
    1.48 +}
    1.49 +
    1.50 +# Building rpm database.
    1.51 +post_install() {
    1.52 +	chroot "$1/" rpm --initdb --quiet
    1.53 +}
    1.54 +
    1.55 +pre_remove() {
    1.56 +	if [ -d "$1/var/lib/rpm" ]; then
    1.57 +		rm -f "$1"/var/lib/rpm/*
    1.58 +	fi
    1.59 +}