wok-current rev 18216

Add hfsprogs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 17 19:01:24 2015 +0200 (2015-07-17)
parents c3bdb0de80a7
children a4d79a7fa68e
files hfsprogs/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/hfsprogs/receipt	Fri Jul 17 19:01:24 2015 +0200
     1.3 @@ -0,0 +1,36 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="hfsprogs"
     1.7 +VERSION="332.25"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="HFS+ Filesystem user space tools."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="APLS"
    1.12 +TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
    1.13 +WEB_SITE="http://www.opensource.apple.com/darwinsource/10.4/"
    1.14 +WGET_URL="http://http.debian.net/debian/pool/main/h/hfsprogs/$TARBALL"
    1.15 +EXTRA_SOURCE_FILES="${PACKAGE}_$VERSION-11.debian.tar.gz"
    1.16 +
    1.17 +DEPENDS="libbsd libcrypto"
    1.18 +BUILD_DEPENDS="libbsd-dev openssl-dev"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	[ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] ||
    1.24 +	  wget -P $SOURCES_REPOSITORY $(dirname $WGET_URL)/$EXTRA_SOURCE_FILES
    1.25 +	tar xzf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
    1.26 +	for i in $(cat debian/patches/series); do
    1.27 +		patch -p1 -i debian/patches/$i
    1.28 +	done
    1.29 +	make -f Makefile.lnx LDFLAGS="$LDFLAGS -Wl,--as-needed" \
    1.30 +		CFLAGS="$CFLAGS -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -I$src/include"
    1.31 +}
    1.32 +
    1.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 +genpkg_rules()
    1.35 +{
    1.36 +	mkdir -p $fs/sbin
    1.37 +	install -m 755 $src/newfs_hfs.tproj/newfs_hfs $fs/sbin/mkfs.hfsplus
    1.38 +	install -m 755 $src/fsck_hfs.tproj/fsck_hfs $fs/sbin/fsck.hfsplus
    1.39 +}