summaryrefslogtreecommitdiff
path: root/hfsplusutils/Pkgfile
blob: 0d584342a715ad4cd91b2b43947d91800526c0bc (plain)
    1 # Description: HFS+ Filesystem Access Utilities (a PPC filesystem)
    2 # URL: https://sourceforge.net/projects/hfsplusutils/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 
    5 name=hfsplusutils
    6 version=1.0.4
    7 release=1
    8 source=(https://crux.ster.zone/downloads/$name/hfsplus_$version.src.tar.bz2
    9 	hfsplusutils-1.0.4-cflags.patch
   10 	hfsplusutils-1.0.4-errno.patch
   11 	hfsplusutils-1.0.4-gcc4.patch
   12 	hfsplusutils-1.0.4-glob.patch
   13 	hfsplusutils-1.0.4-stdlib.patch
   14 	hfsplusutils-1.0.4-string.patch)
   15 
   16 build() {
   17 	cd hfsplus-$version
   18 
   19 	patch -p1 -i $SRC/hfsplusutils-1.0.4-glob.patch
   20 	patch -p1 -i $SRC/hfsplusutils-1.0.4-errno.patch
   21 	patch -p1 -i $SRC/hfsplusutils-1.0.4-gcc4.patch
   22 	patch -p1 -i $SRC/hfsplusutils-1.0.4-string.patch
   23 	patch -p1 -i $SRC/hfsplusutils-1.0.4-stdlib.patch
   24 	patch -p1 -i $SRC/hfsplusutils-1.0.4-cflags.patch
   25 
   26 	sed -i -e 's/^CFLAGS\s/AM_CFLAGS /' {libhfsp/src,src}/Makefile.am
   27 
   28 	mv configure.{in,ac}
   29 	autoreconf -i
   30 
   31 	CFLAGS+=' -fgnu89-inline'
   32 	./configure \
   33 		--prefix=/usr \
   34 		--disable-shared \
   35 		--disable-dependency-tracking \
   36 		CFLAGS="$CFLAGS"
   37 
   38 	make
   39 	make DESTDIR=$PKG SUBDIRS=src install
   40 
   41 	ln -sf hpfsck $PKG/usr/bin/fsck.hfsplus
   42 	install -D -m 0664 doc/man/hfsp.man $PKG/usr/share/man/man1/hfsp.1
   43 	for a in hpcd hpcopy hpfsck hpls hpmkdir hpmount hppwd hprm hpumount fsck.hfsplus ; do
   44 		ln -sf hfsp.1 $PKG/usr/share/man/man1/$a.1
   45 	done
   46 }

Generated by cgit