wok-next annotate hfsprogs/receipt @ rev 21047
Up tazpkg (971), cookutils (1095)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 26 21:15:05 2018 +0200 (2018-11-26) |
parents | d43bf7aae921 |
children |
rev | line source |
---|---|
al@19816 | 1 # SliTaz package receipt v2. |
pascal@18216 | 2 |
pascal@18216 | 3 PACKAGE="hfsprogs" |
pascal@18216 | 4 VERSION="332.25" |
pascal@18216 | 5 CATEGORY="system-tools" |
al@19816 | 6 SHORT_DESC="HFS+ Filesystem user space tools" |
pascal@18216 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18216 | 8 LICENSE="APLS" |
al@21020 | 9 WEB_SITE="https://opensource.apple.com/" |
al@19816 | 10 |
pascal@18216 | 11 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz" |
al@19816 | 12 TARBALL2="${PACKAGE}_$VERSION-11.debian.tar.gz" |
pascal@18216 | 13 WGET_URL="http://http.debian.net/debian/pool/main/h/hfsprogs/$TARBALL" |
pascal@18216 | 14 |
pascal@18216 | 15 BUILD_DEPENDS="libbsd-dev openssl-dev" |
pascal@18216 | 16 |
al@21020 | 17 compile_rules() { |
al@20513 | 18 [ -s "$SRC/$TARBALL2" ] || |
al@20513 | 19 wget -P $SRC $(dirname $WGET_URL)/$TARBALL2 |
al@20513 | 20 tar -xzf $SRC/$TARBALL2 |
pascal@18216 | 21 for i in $(cat debian/patches/series); do |
pascal@18216 | 22 patch -p1 -i debian/patches/$i |
pascal@18216 | 23 done |
al@19816 | 24 |
al@19816 | 25 make -f Makefile.lnx \ |
al@19816 | 26 LDFLAGS="$LDFLAGS -Wl,--as-needed" \ |
pascal@18216 | 27 CFLAGS="$CFLAGS -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -I$src/include" |
al@19816 | 28 |
al@19816 | 29 mkdir -p $install/sbin/ $install/usr/share/hfsprogs/ |
al@19816 | 30 install -m755 $src/newfs_hfs.tproj/newfs_hfs $install/sbin/mkfs.hfsplus |
al@19816 | 31 install -m755 $src/fsck_hfs.tproj/fsck_hfs $install/sbin/fsck.hfsplus |
al@19816 | 32 install -m644 $src/newfs_hfs.tproj/hfsbootdata.img \ |
al@19816 | 33 $install/usr/share/hfsprogs/hfsbootdata |
al@21020 | 34 |
al@19816 | 35 cook_pick_manpages newfs_hfs.tproj/newfs_hfs.8 fsck_hfs.tproj/fsck_hfs.8 |
pascal@18216 | 36 } |
pascal@18216 | 37 |
al@21020 | 38 genpkg_rules() { |
al@19816 | 39 copy @std |
al@20453 | 40 DEPENDS="libbsd openssl" |
pascal@18216 | 41 } |