wok-current annotate hfsprogs/receipt @ rev 25308
updated sipsak (0.9.7 -> 0.9.8.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 20 10:59:52 2022 +0100 (2022-07-20) |
parents | fcd3d43eadad |
children |
rev | line source |
---|---|
pascal@18216 | 1 # SliTaz package receipt. |
pascal@18216 | 2 |
pascal@18216 | 3 PACKAGE="hfsprogs" |
pascal@18216 | 4 VERSION="332.25" |
pascal@18216 | 5 CATEGORY="system-tools" |
pascal@18216 | 6 SHORT_DESC="HFS+ Filesystem user space tools." |
pascal@18216 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18216 | 8 LICENSE="APLS" |
pascal@18216 | 9 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz" |
pascal@20859 | 10 WEB_SITE="https://opensource.apple.com/" |
pascal@18216 | 11 WGET_URL="http://http.debian.net/debian/pool/main/h/hfsprogs/$TARBALL" |
pascal@18216 | 12 EXTRA_SOURCE_FILES="${PACKAGE}_$VERSION-11.debian.tar.gz" |
pascal@18216 | 13 |
pascal@18216 | 14 DEPENDS="libbsd libcrypto" |
pascal@18216 | 15 BUILD_DEPENDS="libbsd-dev openssl-dev" |
pascal@18216 | 16 |
pascal@24419 | 17 # What is the latest version available today? |
pascal@24419 | 18 current_version() |
pascal@24419 | 19 { |
pascal@24419 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24419 | 21 sed "/latest/d;/${PACKAGE}_/!d;/orig/!d;s|.*${PACKAGE}_\\(.*\\).orig.*\".*|\\1|" | sort -Vr | sed q |
pascal@24419 | 22 } |
pascal@24419 | 23 |
pascal@18216 | 24 # Rules to configure and make the package. |
pascal@18216 | 25 compile_rules() |
pascal@18216 | 26 { |
pascal@18216 | 27 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || |
pascal@18216 | 28 wget -P $SOURCES_REPOSITORY $(dirname $WGET_URL)/$EXTRA_SOURCE_FILES |
pascal@18216 | 29 tar xzf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES |
pascal@18216 | 30 for i in $(cat debian/patches/series); do |
pascal@18216 | 31 patch -p1 -i debian/patches/$i |
pascal@18216 | 32 done |
pascal@18216 | 33 make -f Makefile.lnx LDFLAGS="$LDFLAGS -Wl,--as-needed" \ |
pascal@18216 | 34 CFLAGS="$CFLAGS -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -I$src/include" |
pascal@18216 | 35 } |
pascal@18216 | 36 |
pascal@18216 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18216 | 38 genpkg_rules() |
pascal@18216 | 39 { |
pascal@18216 | 40 mkdir -p $fs/sbin |
pascal@18216 | 41 install -m 755 $src/newfs_hfs.tproj/newfs_hfs $fs/sbin/mkfs.hfsplus |
pascal@18216 | 42 install -m 755 $src/fsck_hfs.tproj/fsck_hfs $fs/sbin/fsck.hfsplus |
pascal@18216 | 43 } |