wok annotate dpkg/receipt @ rev 25734

updated sc-im (-> 0.8.4)
author Hans-G?nter Theisgen
date Thu Aug 22 14:48:42 2024 +0100 (2 months ago)
parents b78e79c31b1f
children
rev   line source
shann@15684 1 # SliTaz package receipt.
shann@15684 2
shann@15684 3 PACKAGE="dpkg"
Hans-G?nter@23966 4 VERSION="1.17.27"
shann@15684 5 CATEGORY="misc"
Hans-G?nter@23968 6 SHORT_DESC="Debian package management system."
shann@15684 7 MAINTAINER="shann@slitaz.org"
pascal@16051 8 LICENSE="GPL2"
shann@15684 9 WEB_SITE="https://wiki.debian.org/dpkg"
Hans-G?nter@23966 10
Hans-G?nter@23966 11 TARBALL="${PACKAGE}_$VERSION.tar.xz"
Hans-G?nter@23966 12 #WGET_URL="http://people.slitaz.org/~shann/packages/$PACKAGE/$TARBALL" # 1.16.12
pascal@25552 13 WGET_URL="https://cloudfront.debian.net/debian-archive/debian/pool/main/d/dpkg/$TARBALL"
Hans-G?nter@23966 14
shann@15684 15 DEPENDS="bzlib liblzma zlib"
Hans-G?nter@23967 16 BUILD_DEPENDS="file liblzma-dev ncurses-dev perl"
shann@15684 17
shann@15684 18 CONFIG_FILES="/etc/logrotate.d/dpkg
shann@15684 19 /etc/cron.daily/dpkg
shann@15684 20 /etc/alternatives/README
shann@15684 21 /etc/dpkg/dpkg.cfg"
shann@15684 22
pascal@24419 23 # What is the latest version available today?
pascal@24419 24 current_version()
pascal@24419 25 {
pascal@24419 26 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24419 27 sed "/latest/d;/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24419 28 }
pascal@24419 29
pascal@24419 30 # Rules to configure and make the package.
Hans-G?nter@23966 31 compile_rules()
Hans-G?nter@23966 32 {
Hans-G?nter@23968 33 ./configure &&
Hans-G?nter@23966 34 make &&
Hans-G?nter@23966 35 make install
Hans-G?nter@23966 36 }
Hans-G?nter@23966 37
shann@15684 38 # Rules to gen a SliTaz package suitable for Tazpkg.
shann@15684 39 genpkg_rules()
shann@15684 40 {
Hans-G?nter@23966 41 mkdir -p $fs/usr/share
Hans-G?nter@23966 42
Hans-G?nter@23966 43 cp -a $install/usr/etc $fs
Hans-G?nter@23966 44 cp -a $install/usr/sbin $fs
Hans-G?nter@23966 45 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23966 46 cp -a $install/usr/share/dpkg $fs/usr/share
Hans-G?nter@23969 47 rm $fs/usr/share/dpkg/*.mk
shann@15684 48 }