wok-next view 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 source
1 # SliTaz package receipt v2.
3 PACKAGE="rpm"
4 VERSION="4.14.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="RPM Package Manager"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://rpm.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://ftp.rpm.org/releases/rpm-${VERSION%.*}.x/$TARBALL"
13 # integrity check: http://rpm.org/download.html -> Release notes
14 TARBALL_SHA256="43f40e2ccc3ca65bd3238f8c9f8399d4957be0878c2e83cba2746d2d0d96793b"
16 BUILD_DEPENDS="p7zip-full gnupg zlib-dev bzip2-dev xz-dev zstd-dev \
17 elfutils-dev nss-dev nspr-dev libmagic-dev popt-dev libarchive-dev db-dev \
18 gettext dbus-dev"
19 SPLIT="rpm-dev"
21 compile_rules() {
22 ./configure \
23 --without-lua \
24 $CONFIGURE_ARGS &&
25 fix libtool &&
26 make &&
27 make install
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 rpm)
33 copy @std
34 DEPENDS="bzlib dbus elfutils libarchive libdb liblzma libmagic nss \
35 popt python zlib zstd"
36 SUGGESTED="p7zip-full gnupg"
37 TAGS="package-manager"
38 ;;
39 *-dev)
40 copy @dev
41 DEPENDS="rpm bzip2-dev db-dev nss-dev popt-dev xz-dev zlib-dev \
42 zstd-dev"
43 ;;
44 esac
45 }
47 # Building rpm database.
48 post_install() {
49 chroot "$1/" rpm --initdb --quiet
50 }
52 pre_remove() {
53 if [ -d "$1/var/lib/rpm" ]; then
54 rm -f "$1"/var/lib/rpm/*
55 fi
56 }