summaryrefslogblamecommitdiff
path: root/user/diskdev_cmds/APKBUILD
blob: f3a60eb612a4f23e30079aacec69b908b024b9ab (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                  
        


                                                                 
                                  


                                            
                          
                                                                              


                   
                                                 

         



                            






                                                                                    




                                                                      

                                                                    

                                                               



                                                                     
                                                                                                                                                                        

                                                                                                                                             
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=diskdev_cmds
pkgver=332.14
pkgrel=1
pkgdesc="HFS+ utilities ported from OS X 10.8.4 (fsck/mkfs)"
url="https://opensource.apple.com/release/mac-os-x-10411ppc.html"
arch="all"
options="!check"  # No test suite.
license="APSL-2.0"
depends=""
makedepends="bsd-compat-headers openssl-dev"
subpackages="$pkgname-doc"
source="https://opensource.apple.com/tarballs/$pkgname/$pkgname-$pkgver.tar.gz
	linux.patch
	musl.patch
	"
builddir="$srcdir/$pkgname-$pkgname-$pkgver" #830

build() {
	make -f Makefile.lnx
}

package() {
	install -D -m755 "$builddir"/fsck_hfs.tproj/fsck_hfs "$pkgdir"/sbin/fsck_hfs
	install -m755 "$builddir"/newfs_hfs.tproj/newfs_hfs "$pkgdir"/sbin/newfs_hfs
	ln -s fsck_hfs "$pkgdir"/sbin/fsck.hfs
	ln -s fsck_hfs "$pkgdir"/sbin/fsck.hfsplus
	ln -s newfs_hfs "$pkgdir"/sbin/mkfs.hfs
	ln -s newfs_hfs "$pkgdir"/sbin/mkfs.hfsplus

	install -D -m644 "$builddir"/newfs_hfs.tproj/hfsbootdata.img \
		"$pkgdir"/usr/share/hfsprogs/hfsbootdata

	install -D -m644 "$builddir"/fsck_hfs.tproj/fsck_hfs.8 \
		"$pkgdir"/usr/share/man/man8/fsck_hfs.8
	ln -s fsck_hfs.8 "$pkgdir"/usr/share/man/man8/fsck.hfs.8
	ln -s fsck_hfs.8 "$pkgdir"/usr/share/man/man8/fsck.hfsplus.8
	install -m644 "$builddir"/newfs_hfs.tproj/newfs_hfs.8 \
		"$pkgdir"/usr/share/man/man8/newfs_hfs.8
	ln -s newfs_hfs.8 "$pkgdir"/usr/share/man/man8/mkfs.hfs.8
	ln -s newfs_hfs.8 "$pkgdir"/usr/share/man/man8/mkfs.hfsplus.8
}

sha512sums="b189bbe9e43ed2354cc134d1cce6bb0f65709e36f64b586f850a73f864cc3c7e36e83cccde093871efba9e095c16a8278d92d13de59dd03ad757b79fb83cda06  diskdev_cmds-332.14.tar.gz
bd736c087291024d352d7e3379069f440cf1af6abbcb236499a00c6a756c1b2b3c36e61a13d08e8db7319654b9cb1c04574a4dbda79cedeceb32660708900da9  linux.patch
0b6280e20b0e8d2e453505866af2f1423a4f0172de2e5a6b14feb82df3c659270d9af0320a098e41d405e5cf9111852926e8a4eb5bea1604c262b126917f442f  musl.patch"