wok-current view hfsprogs/receipt @ rev 25425

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