crux-musl

Unnamed repository; edit this file 'description' to name the repository.
git clone https://codeberg.org/emmett1/crux-musl
Log | Files | Refs | README | LICENSE

Pkgfile (1073B)


      1 # Description: Tools for IBM's journaled file system
      2 # URL: https://jfs.sourceforge.net/
      3 # Maintainer: Emmett1, emmett1 dot 2miligrams at protonmail dot com
      4 # Depends on: util-linux
      5 
      6 name=jfsutils
      7 version=1.1.15
      8 release=5
      9 source=(https://jfs.sourceforge.net/project/pub/$name-$version.tar.gz
     10     sysmacros.patch
     11     flush-before-read-musl.patch
     12     portability.patch
     13     musl-fsck_message-basename.patch
     14     musl-fscklog-basename.patch)
     15 
     16 build() {
     17     cd $name-$version
     18 
     19     patch -p1 -i $SRC/sysmacros.patch
     20     # Apply patches from Void
     21     patch -p1 -i $SRC/flush-before-read-musl.patch
     22     patch -p1 -i $SRC/portability.patch
     23     # Apply Crux patches
     24     patch -p1 -i $SRC/musl-fsck_message-basename.patch
     25     patch -p1 -i $SRC/musl-fscklog-basename.patch
     26 
     27     ./configure --prefix=/ --mandir=/usr/share/man
     28 
     29     make CFLAGS="$CFLAGS -fcommon"
     30     make DESTDIR=$PKG install
     31 
     32     ln -sf jfs_mkfs $PKG/sbin/mkfs.jfs
     33     ln -sf jfs_fsck $PKG/sbin/fsck.jfs
     34     ln -sf jfs_mkfs.8 $PKG/usr/share/man/man8/mkfs.jfs.8
     35     ln -sf jfs_fsck.8 $PKG/usr/share/man/man8/fsck.jfs.8
     36 }