opt/jfsutils/Pkgfile

28 lines
707 B
Plaintext

# Description: Tools for IBM's journaled file system
# URL: https://jfs.sourceforge.net/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: util-linux
name=jfsutils
version=1.1.15
release=5
source=(https://jfs.sourceforge.net/project/pub/$name-$version.tar.gz
inttypes.patch sysmacros.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/inttypes.patch
patch -p1 -i $SRC/sysmacros.patch
./configure --prefix=/ --mandir=/usr/share/man
make CFLAGS="$CFLAGS -fcommon"
make DESTDIR=$PKG install
ln -sf jfs_mkfs $PKG/sbin/mkfs.jfs
ln -sf jfs_fsck $PKG/sbin/fsck.jfs
ln -sf jfs_mkfs.8 $PKG/usr/share/man/man8/mkfs.jfs.8
ln -sf jfs_fsck.8 $PKG/usr/share/man/man8/fsck.jfs.8
}