summaryrefslogtreecommitdiff
path: root/util-linux/Pkgfile
blob: aacc5aed9e0b9c15c83633607f6a261b7961e85a (plain)
    1 # Description: Miscellaneous system utilities
    2 # URL: https://github.com/karelzak/util-linux
    3 # Maintainer: CRUX System Team, core-ports at crux dot nu
    4 # Depends on: eudev file readline bzip2 xz
    5 
    6 name=util-linux
    7 version=2.37.2
    8 release=1
    9 source=(https://www.kernel.org/pub/linux/utils/$name/v${version:0:4}/$name-$version.tar.xz
   10 	$name-man-$version.tar.xz)
   11 
   12 build() {
   13 	cd $name-$version
   14 
   15 	./configure \
   16 		--prefix=/usr \
   17 		--disable-nls \
   18 		--disable-asciidoc \
   19 		--disable-{login,su,sulogin,nologin,runuser} \
   20 		--disable-chfn-chsh \
   21 		--enable-{write,raw,kill} \
   22 		--without-python
   23 
   24 	make
   25 	make DESTDIR=$PKG install
   26 
   27 	install -d $PKG/{etc,var/{lib/libuuid,run/uuidd}}
   28 	touch $PKG/etc/adjtime
   29 	cp -r $SRC/man $PKG/usr/share
   30 
   31 	rm -r $PKG/usr/share/{doc,bash-completion}
   32 	rm $PKG/sbin/{mkfs.bfs,mkfs.minix,fsck.minix}
   33 	rm $PKG/usr/share/man/man8/{fsck.minix,mkfs.bfs,mkfs.minix}.8
   34 }

Generated by cgit