wok-next annotate rpm/receipt @ rev 21480
updated aircrack-ng (1.4 -> 1.6)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 18 14:12:59 2020 +0100 (2020-06-18) |
parents | 82b613cfd1e0 |
children |
rev | line source |
---|---|
al@20862 | 1 # SliTaz package receipt v2. |
al@20862 | 2 |
al@20862 | 3 PACKAGE="rpm" |
al@20862 | 4 VERSION="4.14.1" |
al@20862 | 5 CATEGORY="system-tools" |
al@20862 | 6 SHORT_DESC="RPM Package Manager" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
al@20862 | 8 LICENSE="GPL2" |
pascal@21181 | 9 WEB_SITE="https://rpm.org/" |
al@20862 | 10 |
al@20862 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@20862 | 12 WGET_URL="http://ftp.rpm.org/releases/rpm-${VERSION%.*}.x/$TARBALL" |
al@20862 | 13 # integrity check: http://rpm.org/download.html -> Release notes |
al@20862 | 14 TARBALL_SHA256="43f40e2ccc3ca65bd3238f8c9f8399d4957be0878c2e83cba2746d2d0d96793b" |
al@20862 | 15 |
al@20862 | 16 BUILD_DEPENDS="p7zip-full gnupg zlib-dev bzip2-dev xz-dev zstd-dev \ |
al@20862 | 17 elfutils-dev nss-dev nspr-dev libmagic-dev popt-dev libarchive-dev db-dev \ |
al@21020 | 18 gettext-dev dbus-dev" |
al@21020 | 19 SPLIT="$PACKAGE-dev" |
al@20862 | 20 |
al@20862 | 21 compile_rules() { |
al@20862 | 22 ./configure \ |
al@20862 | 23 --without-lua \ |
al@20862 | 24 $CONFIGURE_ARGS && |
al@20862 | 25 fix libtool && |
al@20862 | 26 make && |
al@20862 | 27 make install |
al@20862 | 28 } |
al@20862 | 29 |
al@20862 | 30 genpkg_rules() { |
al@20862 | 31 case $PACKAGE in |
al@20862 | 32 rpm) |
al@20862 | 33 copy @std |
al@21105 | 34 DEPENDS="libbzip2 dbus elfutils libarchive libdb liblzma libmagic nss \ |
al@20862 | 35 popt python zlib zstd" |
al@20862 | 36 SUGGESTED="p7zip-full gnupg" |
al@20862 | 37 TAGS="package-manager" |
al@20862 | 38 ;; |
al@20862 | 39 *-dev) |
al@20862 | 40 copy @dev |
al@20862 | 41 DEPENDS="rpm bzip2-dev db-dev nss-dev popt-dev xz-dev zlib-dev \ |
al@20862 | 42 zstd-dev" |
al@20862 | 43 ;; |
al@20862 | 44 esac |
al@20862 | 45 } |
al@20862 | 46 |
al@20862 | 47 # Building rpm database. |
al@20862 | 48 post_install() { |
al@20862 | 49 chroot "$1/" rpm --initdb --quiet |
al@20862 | 50 } |
al@20862 | 51 |
al@20862 | 52 pre_remove() { |
al@20862 | 53 if [ -d "$1/var/lib/rpm" ]; then |
al@20862 | 54 rm -f "$1"/var/lib/rpm/* |
al@20862 | 55 fi |
al@20862 | 56 } |