--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/old/cpufrequtils-20160622/PlamoBuild.cpufrequtils-008 2016-06-22 01:19:10.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-008.tar.xz + http://slackware.uk/people/alien-arm/bootstrap/source.local/a/cpufrequtils/cpufrequtils_no_aperf.diff" +pkgbase=cpufrequtils +vers=008 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS COPYING README" ###################################################################### fscheck() { @@ -233,6 +234,13 @@ esac done done + cd $B + if [ $arch != i686 -a $arch != x86_64 ] ; then + patch -Np1 -i $W/cpufrequtils_no_aperf.diff + fi + cp -p Makefile{,.orig} + sed -i -e '/^mandir/s@/man@/share/man@' \ + -e "/^libdir/s@/lib@/$libdir@" Makefile for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +280,8 @@ make install DESTDIR=$P fi done + touch $P/usr/$libdir/* + chown root.root $P/usr/$libdir/* touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,8 +306,12 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src + tar rvpf $pkg.tar -C $P install/doinst.sh touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz read -p "Do you want to keep work files? [y/N] " ans