1 # Maintainer: Prashant Vaibhav <mercurysquad+arch@gmail.com>
2 # Previous Maintainer: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
3 # Contributor: Rubin Simons <rubin@xs4all.nl>
8 pkgdesc="HFS/HFS+ user space utils"
11 license=('custom:APSL')
12 url="http://www.opensource.apple.com/"
13 source=(http://ftp.de.debian.org/debian/pool/main/h/hfsprogs/hfsprogs_332.25.orig.tar.gz \
14 http://ftp.de.debian.org/debian/pool/main/h/hfsprogs/hfsprogs_332.25-9.debian.tar.gz \
17 md5sums=('261c3de5ec0dcf5244e3f60d79c1d6f1'
18 '5bc5c56041291db36fcbcbc2e4636638'
19 '771f0a6036a80d929c07df49f9a3d909'
20 'e2429944c0192d817c700b8f0dffce6e')
23 cd $srcdir/debian/patches/
24 rm $srcdir/debian/patches/series
25 cd $srcdir/diskdev_cmds-${pkgver}
26 for i in $srcdir/debian/patches/*; do patch -p1 < $i
28 patch -Np0 -i "${srcdir}/makefile.patch" || return 1
33 cd $srcdir/diskdev_cmds-${pkgver}
34 install -d -m 755 "$pkgdir/usr/share/hfsprogs"
35 install -m 644 newfs_hfs.tproj/hfsbootdata.img "$pkgdir/usr/share/hfsprogs/hfsbootdata"
36 install -D -m755 newfs_hfs.tproj/newfs_hfs "$pkgdir/sbin/mkfs.hfsplus"
37 install -D -m755 fsck_hfs.tproj/fsck_hfs "$pkgdir/sbin/fsck.hfsplus"
38 install -D -m644 $startdir/src/license "$pkgdir/usr/share/licenses/hfsprogs/APSL"
39 install -d -m 755 "$pkgdir/usr/share/man/man8/"
40 install -m 644 newfs_hfs.tproj/newfs_hfs.8 "$pkgdir/usr/share/man/man8/mkfs.hfsplus.8"
41 install -m 644 fsck_hfs.tproj/fsck_hfs.8 "$pkgdir/usr/share/man/man8/fsck.hfsplus.8"